2014-11-02 08:57:37 -08:00
|
|
|
class UserController < ApplicationController
|
|
|
|
def show
|
2014-11-02 09:16:47 -08:00
|
|
|
@user = User.find_by_screen_name!(params[:username])
|
2014-11-02 08:57:37 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
def edit
|
2014-11-03 04:21:41 -08:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def update
|
2014-11-04 06:56:00 -08:00
|
|
|
params.require(:display_name)
|
2014-11-03 04:21:41 -08:00
|
|
|
current_user.display_name = params[:display_name]
|
|
|
|
current_user.save!
|
|
|
|
redirect_to edit_user_profile_path
|
2014-11-02 08:57:37 -08:00
|
|
|
end
|
|
|
|
end
|