I\'m trying to add an id tag to a form that I\'m creating in rails. The beginning of the form has the following code:
<%= form_for(@user) do |f| %>
try this <%= form_for @user, :url => "controller action url", :html => {:id => "Blabla"} do |f| %>
<%= form_for @user, :url => "controller action url", :html => {:id => "Blabla"} do |f| %>
EDIT: If you don't want custom action URL then you can use this as well <%= form_for @user, html: {id: "BlaBla"} do |f| %>
<%= form_for @user, html: {id: "BlaBla"} do |f| %>