public
Created

Create Posts and Comments

  • Download Gist
posts_and_comments.rb
Ruby
1 2 3
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'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.