Skip to content

Instantly share code, notes, and snippets.

@iHiD
Created June 6, 2012 15:30
Show Gist options
  • Save iHiD/2882652 to your computer and use it in GitHub Desktop.
Save iHiD/2882652 to your computer and use it in GitHub Desktop.
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