Bugfix to pass feature test

- check if session[:return_to] is nil
- adds unique html ids for dropdown login fields
This commit is contained in:
Chrisbr 2014-05-10 17:52:26 +02:00
parent 0a5f08878f
commit 12e6fd9cb5
2 changed files with 4 additions and 3 deletions

View file

@ -47,8 +47,8 @@
%span.caret
.dropdown-menu{:style => "padding: 17px;"}
= form_tag user_session_path do
= text_field_tag 'user[email]'
= password_field_tag 'user[password]'
= text_field_tag 'user[email]', nil, id: 'user_email_dd'
= password_field_tag 'user[password]', nil, id: 'user_password_dd'
%label.checkbox
= check_box_tag 'user[remember_me]'
Remember me