Skip to content

Instantly share code, notes, and snippets.

@Pistos
Created October 4, 2011 14:08
Show Gist options
  • Select an option

  • Save Pistos/1261726 to your computer and use it in GitHub Desktop.

Select an option

Save Pistos/1261726 to your computer and use it in GitHub Desktop.
Rails is fun!
(rdb:1) p Post.all.find { |p| p.author_id == 978 }
#<StatusMessage id: 1051, author_id: 978, public: false, diaspora_handle: "alice@localhost:9887", guid: "b82ff21c4136c8bc", pending: false, type: "StatusMessage", text: "ohai", remote_photo_path: nil, remote_photo_name: nil, random_string: nil, processed_image: nil, youtube_titles: {}, created_at: "2011-10-04 13:58:54", updated_at: "2011-10-04 13:58:54", unprocessed_image: nil, object_url: nil, image_url: nil, image_height: nil, image_width: nil, provider_display_name: nil, actor_url: nil, objectId: nil, root_guid: nil, status_message_guid: nil, likes_count: 0, comments_count: 0>
(rdb:1) p Post.where(:author_id => 978)
NoMethodError Exception: undefined method `abstract_class?' for Object:Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment