Reputation: 4171
I have this form_tag and I need to add a class to it. Not sure how to do it without breaking it:
<%= form_tag sessions_path do %>
Upvotes: 1
Views: 1191
Reputation: 7543
<%= form_tag session_path, :class => 'class_name' do %>
Reputation: 15525
<%= form_tag sessions_path, html: { class: 'something' } do %>
Upvotes: 6