Skip to content

Instantly share code, notes, and snippets.

@raysrashmi
Created November 11, 2012 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 => 'foo@example.com'}
@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