Skip to content

Instantly share code, notes, and snippets.

@nakajima
Created May 23, 2011 21:12
Show Gist options
  • Save nakajima/987625 to your computer and use it in GitHub Desktop.
Save nakajima/987625 to your computer and use it in GitHub Desktop.
bizarre syntax error in staging but not in develompent
- if user_signed_in?
Welcome, #{link_to current_user.first_name, user_path(current_user)}
= link_to "Sign out", logout_path
- else
= form_for :user, :url => login_path do |f|
= f.label :email
= f.text_field :email
%br
= f.label :password
= f.password_field :password
%br
= submit_tag 'Log in'
- if user_signed_in?
Welcome, #{link_to current_user.first_name, user_path(current_user)}
= link_to "Sign out", logout_path
- else
= form_for :user, :url => login_path do |f|
= f.label :email
= f.text_field :email
%br
= f.label :password
= f.password_field :password
%br
= submit_tag 'Log in'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment