public
Created

How to Build A Secure Website With Ruby On Rails 7

  • Download Gist
settings_controller.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12
class SettingsController < ApplicationController
 
def show
@user = User.find(session[:user_id])
end
 
def update
@user = User.find(session[:user_id])
@user.update_attributes(params[:settings])
end
 
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.