Class: DouguiUsers::UserActivatesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- DouguiUsers::UserActivatesController
- Defined in:
- app/controllers/dougui_users/user_activates_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#load_user_using_perishable_token
Instance Method Details
#edit ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/dougui_users/user_activates_controller.rb', line 4 def edit @user = DouguiUsers::User.find_by_perishable_token(params[:id]) @user.active = true @user.save redirect_to(login_path, :notice => t("user_activated", :scope => "user_activates.controller")) end |