mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 04:06:04 +01:00
16 lines
316 B
Ruby
16 lines
316 B
Ruby
class UserController < ApplicationController
|
|
def show
|
|
@user = User.find_by_screen_name!(params[:username])
|
|
end
|
|
|
|
def edit
|
|
|
|
end
|
|
|
|
def update
|
|
params.require(:display_name)
|
|
current_user.display_name = params[:display_name]
|
|
current_user.save!
|
|
redirect_to edit_user_profile_path
|
|
end
|
|
end
|