title: Different formtastic behavior on two seemingly-identical servers
body: <p>I have my app running on production and staging servers.</p>
  
  <p>The identical version of code is running on both, the servers are identical in terms of versions of rails (3.1.3), gems, database schema... I'm at a loss to find any difference.</p>
  
  <p>However, I have a form rendered with formtastic (2.0.0.rc5) which does not render the same on the 2 servers.  In production Formtastic seems to not be correctly taking into account that the view is in the admin module.</p>
  
  <p>The partial in question is at <code>app/views/admin/composers/_form.html.erb</code> and the relevant portion of it is:</p>
  
  <pre><code>&lt;%= semantic_form_for @composer, :url =&gt; @composer.new_record? ? admin_composers_path : admin_composer_path(@composer) do |form| %&gt;
      &lt;%= form.inputs do %&gt;
          &lt;%= form.input :name %&gt;
  </code></pre>
  
  <p>...etc...</p>
  
  <p>On my staging server the form renders as expected as (note the <code>id</code> and <code>name</code> of the <code>input</code> field):</p>
  
  <pre><code>&lt;form accept-charset="UTF-8" action="/admin/composers" class="formtastic admin_composer" id="new_admin_composer" method="post" novalidate="novalidate"&gt;
    &lt;div style="margin:0;padding:0;display:inline"&gt;
      &lt;input name="utf8" type="hidden" value="&amp;#x2713;" /&gt;
      &lt;input name="authenticity_token" type="hidden" value="rotbxUCJeZJuAY6eMRKaQKYdiPN0tlfQSKIeCj6VBUE=" /&gt;
    &lt;/div&gt;
    &lt;fieldset class="inputs"&gt;
      &lt;ol&gt;
        &lt;li class="string input required stringish" id="admin_composer_name_input"&gt;
          &lt;label class=" label" for="admin_composer_name"&gt;Name&lt;abbr title="required"&gt;*&lt;/abbr&gt;&lt;/label&gt;
          &lt;input id="admin_composer_name" maxlength="255" name="admin_composer[name]" type="text" /&gt;
  </code></pre>
  
  <p>...etc...</p>
  
  <p>on the production server, however (note the incorrect <code>id</code> and <code>name</code>):</p>
  
  <pre><code>&lt;form accept-charset="UTF-8" action="/admin/composers" class="formtastic composer" id="new_composer" method="post" novalidate="novalidate"&gt;
    &lt;div style="margin:0;padding:0;display:inline"&gt;
      &lt;input name="utf8" type="hidden" value="&amp;#x2713;" /&gt;
      &lt;input name="authenticity_token" type="hidden" value="qt++LTRdS+V28dvTRHA7h0vGhSKSoINP8cTjLRCk088=" /&gt;
    &lt;/div&gt;
    &lt;fieldset class="inputs"&gt;&lt;ol&gt;
      &lt;li class="string input required stringish" id="composer_name_input"&gt;
        &lt;label class=" label" for="composer_name"&gt;Name&lt;abbr title="required"&gt;*&lt;/abbr&gt;&lt;/label&gt;
        &lt;input id="composer_name" maxlength="255" name="composer[name]" type="text" /&gt;
  </code></pre>
  
  <p>...etc...</p>
  
  <p>I've been worried that maybe there was something cached somewhere, but as far as I can tell I've forced everything to redeploy in production.</p>
  
  <p>Thoughts?</p>