Started cleanup user forms
the cancel button on user cp is not working yet. before_filter not called?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user