Changeset 77
- Timestamp:
- 02/05/08 12:03:38 (10 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
app/controllers/sessions_controller.rb (modified) (2 diffs)
-
app/views/layouts/application.html.erb (modified) (1 diff)
-
config/routes.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/sessions_controller.rb
r33 r77 15 15 cookies[:auth_token] = { :value => self.current_user.remember_token , :expires => self.current_user.remember_token_expires_at } 16 16 end 17 redirect_back_or_default( '/')17 redirect_back_or_default( home_path ) 18 18 flash[:notice] = "Logged in successfully" 19 19 else … … 28 28 reset_session 29 29 flash[:notice] = "You have been logged out." 30 redirect_back_or_default( '/')30 redirect_back_or_default( home_path ) 31 31 end 32 32 end -
trunk/app/views/layouts/application.html.erb
r73 r77 62 62 <div id="footer_logged"> 63 63 <% if logged_in? %> 64 Logged in as <%= link_to h(current_user.login), user_path(current_user) %> | <%= link_to 'Logout', '/logout'%>64 Logged in as <%= link_to h(current_user.login), user_path(current_user) %> | <%= link_to 'Logout', logout_path %> 65 65 <% end %> 66 66 </div> 67 Copyright © 2007 | Version <%=h WEBISTRANO_VERSION %> | <a href="http://labs.peritor.com/webistrano" target="_blank">http://labs.peritor.com/webistrano</a>67 Copyright © 2007, 2008 | Version <%=h WEBISTRANO_VERSION %> | <a href="http://labs.peritor.com/webistrano" target="_blank">http://labs.peritor.com/webistrano</a> 68 68 </div> 69 69 -
trunk/config/routes.rb
r34 r77 38 38 39 39 # stylesheet 40 map. logout '/stylesheets/application.css', :controller => 'stylesheets', :action => 'application'40 map.stylesheet '/stylesheets/application.css', :controller => 'stylesheets', :action => 'application' 41 41 42 42 # Install the default route as the lowest priority.
