Change html form id generated by form_for rails 3.1
问题 I have this form_for: <%= form_for [post, Comment.new,], :remote => true do |f| %> <%= f.text_area :content, :cols =>10, :rows => 1%> <% end %> <%= f.submit :class => "input_comment" %> That generate the next code html: <form method="post" id="new_comment" data-remote="true" class="new_comment" action="/post/4efcda9e1d41c82486000077/comments" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8"> <input type="hidden" value="ctVfDF