Class: DouguiUsers::UserActivatesController

Inherits:
ApplicationController show all
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

#editObject



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(, :notice => t("user_activated", :scope => "user_activates.controller"))
end