I have a strange situation happening on a page where my <form> tags close immediately, leaving the contents of the form on their own and not useful.
Here's the main ERB:
<%= form_for(@review) do |f| %> <%= render 'apply/review_form', :locals => {:f => f} %> <%= f.text_field :notes %> <% end %>
Seems simple, right? I tried partial on my own; text_field itself; another version using form_tag , but nothing works.
HTML looks like this:
<div id="reviewContainer"> <form accept-charset="UTF-8" action="/reviews" class="new_review" id="new_review" method="post"> </form> <div style="margin:0;padding:0;display:inline"> <input name="utf8" type="hidden" value="β"> <input name="authenticity_token" type="hidden" value="dJSuLMfhBSVKAM3Buwe1NjtBedSLQl062/+oliGbBfE="> </div> <input id="review_notes" name="review[notes]" size="30" type="text"> <div class="clear"></div> </div>
Any ideas? It seems so simple, I canβt understand why it wonβt work!
Perhaps useful information
This form is not the only form on the page, and it is enclosed in JQuery Tools Scrollable.
html ruby-on-rails ruby-on-rails-3 forms
sscirrus
source share