For "Login" link as shown below to work,
li
= link_to "Login", new_user_session_path, :remote => true, 'data-toggle' => 'modal', 'data-target' => '#login_modal', :class => "btn btn-small", :method => 'get'
You will need to have id = login_modal
of your div
(enclosing the Login form)
For example:
<div class="modal hide fade in" id="login_modal">
For "Sign Up Free" link as shown below to work,
li
= link_to "Sign Up Free", new_user_session_path, :remote => true, 'data-toggle' => 'modal', 'data-target' => '#sign_up_modal', :class => "btn btn-small", :method => 'get'
You will need to have id = sign_up_modal
of your div
(enclosing the Sign Up form)
For example:
<div class="modal hide fade in" id="sign_up_modal">