Skip to content

Instantly share code, notes, and snippets.

@z8888q
Forked from vsavkin/posts_and_comments.rb
Created March 30, 2012 17:27
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 z8888q/2253142 to your computer and use it in GitHub Desktop.
Save z8888q/2253142 to your computer and use it in GitHub Desktop.
Create Posts and Comments
blog = Blog.create
post = blog.make_post text: 'great post', location_country: 'Canada', location_city: 'Toronto'
post.make_comment text: 'great comment', location_country: 'Canada', location_city: 'Toronto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment