Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

How to Build A Secure Website With Ruby On Rails 7

View settings_controller.rb
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.