Skip to content

Instantly share code, notes, and snippets.

@raysrashmi
Created November 11, 2012 17:21
Show Gist options
  • Save raysrashmi/4055589 to your computer and use it in GitHub Desktop.
Save raysrashmi/4055589 to your computer and use it in GitHub Desktop.
params[:user] = {:name => 'Foo',:email => '[email protected]'}
@user = User.new(params[:user])
@snake66
Copy link

snake66 commented Nov 15, 2012

You mean User.new(params[:user]), right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment