Skip to content

Commit

Permalink
Check login a different way. More specs pass, but not all. [#19]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Oct 13, 2009
1 parent ae6e10a commit 2040577
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/users/new.html.haml
@@ -1,7 +1,7 @@
- if !logged_in?
- if !current_user
%h1&= _("Register")
= error_messages_for :user
- form_for :user, :url => logged_in? ? edit_user_path(current_user) : users_path do |f|
- form_for :user, :url => current_user ? edit_user_path(current_user) : users_path do |f|
%h2&= _("Who are you?")
%table.edit
%tr
Expand Down Expand Up @@ -49,4 +49,4 @@
= f.check_box :show_contact
&= _('Make my address visible in the contact list (available to administrators only)')

= submit_tag(logged_in? ? _('Save') : _('Sign up'))
= submit_tag(current_user ? _('Save') : _('Sign up'))

0 comments on commit 2040577

Please sign in to comment.