mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
updated settings templates
This commit is contained in:
1 parent
4a303cb423
commit
97a712d888
12 files changed
+154
-117
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ProfileController < ApplicationController
|
||||
def index
|
||||
@user = current_user
|
||||
end
|
||||
|
||||
def update
|
||||
@user = current_user
|
||||
|
||||
if @user.update(user_params)
|
||||
redirect_to settings_profile_path, notice: 'Profile updated'
|
||||
else
|
||||
render :index
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def user_params
|
||||
params.require(:user).permit(:first_name, :last_name)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user