% layout 'default';
%= form_for index => begin
  % if (param 'user') {
    Wrong name or password, please try again.
  % }
  Name:
  %= text_field 'user'
  
Password:
  %= password_field 'pass'
  
  %= submit_button 'Login'
% end
