Create a gist now

Instantly share code, notes, and snippets.

How to Build A Secure Website With Ruby On Rails 7
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