Note that there are some explanatory texts on larger screens.

plurals
  1. POUTF-8 trouble in rails app when passing to production
    primarykey
    data
    text
    <p>I just passed my application in his production environment :</p> <ul> <li>debian</li> <li>nginx</li> <li>unicorn</li> <li>mysql</li> </ul> <p>In development I use :</p> <ul> <li>mac osx 10.7.3</li> <li>webrick</li> <li>sqlite</li> </ul> <p>I got an error when I go to a view with some UTF-8 chars :</p> <pre><code>ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): 1: render renderer_for(:new) app/admin/projects.rb:122:in `block (2 levels) in &lt;top (required)&gt;' </code></pre> <p>I have added this at the top of my file :</p> <pre><code># encoding: utf-8 </code></pre> <p>It make it work in my development environment but not in my production envirnoment, any idea ? </p> <p><strong>EDIT</strong> </p> <p>The error come from here :</p> <pre><code>f.has_many :roles do |app_f| app_f.inputs do # if object has id we can destroy it if app_f.object.id app_f.input :_destroy, :as =&gt; :boolean, :label =&gt; "Supprimer l'utilisateur du projet" end app_f.input :user, :include_blank =&gt; false, :label_method =&gt; :to_label app_f.input :role_name, :include_blank =&gt; false #app_f.input :role_level, :label =&gt; 'Author type', :as =&gt; :select, :include_blank =&gt; false, :collection =&gt; Role::role_list end end </code></pre> <p>It doesn't change anything if I change the current locale.</p> <p><strong>EDIT</strong></p> <p>I'm using ruby 1.9.3 and rails 3.1.0 I have no view to show because I'm using the <a href="http://activeadmin.info/" rel="nofollow">ActiveAdmin</a> DSL</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload