j'utilise des rails 2.3.9 avec Ruby 1.9.2 et quand j'essaie de mettre à jour mon modèle avec des lettres russes, j'ai erreur dans le journal licorne:rails encodant question = (
Error during failsafe response: incompatible character encodings: UTF-8 and ASCII-8BIT
Read error: #<NoMethodError: undefined method `[]' for nil:NilClass>
trace ressembler à ceci:
/home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:521:in
process_client' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:594:in
bloc worker_loop ' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:592:ineach' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:592:in
worker_loop ' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:482:inblock (2 levels) in spawn_missing_workers' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:479:in
fourchette' /home /rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:479:inblock in spawn_missing_workers' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:475:in
chaque ' /home/rbdev/.rvm/ gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb: 475: dansspawn_missing_workers' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb:489:in
maintain_worker_count ' /home/rbdev/.rvm/gems/ruby-1.9. [email protected]/gems/unicorn-3.0.1/lib/unicorn/http_server.rb: 299: dansjoin' /home/rbdev/.rvm/gems/[email protected]/gems/unicorn-3.0.1/lib/unicorn.rb:13:in
exécutez ' /home/rbdev/.rvm/gems/[email protected]/ gems/unicorn-3.0.1/bin/unicorn_rails: 208: dans<top (required)>' /home/rbdev/.rvm/gems/[email protected]/bin/unicorn_rails:19:in
charge ' /home/rbdev/.rvm/gems/[email protected]/bin/unicorn_rails:19:in `'
donc, je ne peux pas detirminate le problème, La seule chose que je sais - quel problème en Russie (quand je mettre à jour le modèle avec des lettres anglaises - tout est ok. Qu'est-ce que je peux faire ? (
rbdev @ Ubuntu-1004-64-minimum lucide: ~/sites/Avantages/app/views/admin/categories $ fichier -i edit.html.haml edit.html.haml: text/plain; jeu de caractères = us-ascii – vorobey