Refactored profile area

This commit is contained in:
Dmitriy Zaporozhets 2012-09-14 19:13:25 +03:00
parent 8f9a450eed
commit dc37c8aaae
15 changed files with 104 additions and 68 deletions

View file

@ -32,10 +32,14 @@ class ProfileController < ApplicationController
def reset_private_token
current_user.reset_authentication_token!
redirect_to profile_token_path
redirect_to profile_account_path
end
private
def history
@events = current_user.recent_events.page(params[:page]).per(20)
end
private
def user
@user = current_user