Skip to content
Browse files

A better way for admin/sessions

  • Loading branch information...
1 parent 631ce25 commit e5114dcf9a458779b116da8bdb69bf87f251728f @xaviershay xaviershay committed May 17, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/admin/sessions_controller.rb
View
2 app/controllers/admin/sessions_controller.rb
@@ -31,8 +31,8 @@ def create
flash.now[:error] = "You are not authorized"
end
end
+ render :action => 'new'
end
- render :action => 'new' unless flash.now[:error].nil?
end
def destroy

0 comments on commit e5114dc

Please sign in to comment.
Something went wrong with that request. Please try again.