Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A better way for admin/sessions

  • Loading branch information...
commit e5114dcf9a458779b116da8bdb69bf87f251728f 1 parent 631ce25
@xaviershay xaviershay authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.