I have this form:
= simple_form_for :login, url: sessions_path, method: :post, role: "form", class: "form-horizontal" do |f|
= f.input :email
= f.input :password
= f.input :remember_me, as: :boolean, label: false, inline_label: "Stay connected"
= f.submit "Login", class: "btn btn-primary"
= link_to 'Forgot Password?', new_password_reset_path
After a bit of Bootstrap styling:
.panel.panel-primary
.panel-heading
%p
the login form
.panel-body
= simple_form_for :login, url: sessions_path, method: :post, role: "form", class: "form-horizontal" do |f|
= f.input :email
= f.input :password
= f.input :remember_me, as: :boolean, label: false, inline_label: "Stay connected"
.panel-footer
= f.submit "Login", class: "btn btn-primary"
= link_to 'Forgot Password?', new_password_reset_path
I get undefined variable or method f
, what should be done to get it working? I tried nesting the .panel-footer
inside the form, it works but I didn't get the proper styling.