title: display full form field error message below field - Rails 3
body: <p>This seems like it should be both simple and common, but I've been trying to display the full message version of the field errors below each field.</p>
  
  <p>I've done many searches, some reference error_messages_for but it's deprecated. What I've got shows the errors, but not the full message form...</p>
  
  <p>Can anyone help me understand how to show the error messages next to the form field?</p>
  
  <pre><code>&lt;%= form_for @postcode, :url =&gt; search_store_locations_path, :html =&gt; {:class =&gt; "form span16"} do |f| %&gt;
            &lt;div class="control-group &lt;%= "error" if @postcode.errors[:search_token].size &gt; 0 %&gt;"&gt;
                &lt;%= f.label :search_token, "Suburb or Postcode", :class =&gt; "control-label" %&gt;
                &lt;div class="controls"&gt;
                  &lt;%= f.text_field :search_token%&gt;
                  ***&lt;%= raw("&lt;span class='help-inline'&gt;") + @postcode.errors[:search_token].join(", ") + raw("&lt;/span&gt;") if @postcode.errors[:search_token].size &gt; 0 %&gt;***
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="control-group"&gt;
              &lt;div class="controls"&gt;
                  &lt;%= button_tag "Search stores", :class =&gt; "btn btn-success" %&gt;
              &lt;/div&gt;
            &lt;/div&gt;
        &lt;% end %&gt;
      &lt;/div&gt;
  </code></pre>