Skip to content

Instantly share code, notes, and snippets.

@elomar
Created May 22, 2009 20:29
Show Gist options
  • Select an option

  • Save elomar/116341 to your computer and use it in GitHub Desktop.

Select an option

Save elomar/116341 to your computer and use it in GitHub Desktop.
post = Post.make
post.new_record? # false
post = Post.make_unsaved
post.new_record? # true
post.plan
# { :title => "Lorem ipsum", :body => "Lorem ipsum dolor sit amet", ... }
post = Post.make(:title => "Machinist FTW")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment