I am trying out development on Ruby on Rails and I am creating a form using form_for helper:
<%= form_for(:session, url: login_path) , :html => {:class => "formsignin"} do |f| %>
I am trying to add my own custom class formsignin but this does not work.
:html
option is an argument to form_for
helper, you've closed form_for
method call too early! Reference documentation for form_for
.
Try the following:
<%= form_for(:session, url: login_path, html: {class: "formsignin"}) do |f| %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With