Started cleanup user forms

the cancel button on user cp is not working yet. before_filter not
called?
This commit is contained in:
2013-01-22 11:38:35 -05:00
parent 8783ed2015
commit b3b954df34
4 changed files with 14 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
class UsersController < ApplicationController
before_filter :check_for_cancel
before_filter :authenticate_user!
before_filter :is_admin?
@@ -92,4 +93,10 @@ class UsersController < ApplicationController
redirect_to root_path
end
end
def check_for_cancel
if params[:commit] == 'cancel'
redirect_to :back
end
end
end