Retrospring/app/controllers/user_controller.rb

17 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