Created
May 11, 2011 04:14
-
-
Save knewter/965913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.2-p0 > p=Page.last | |
Page Load (0.3ms) SELECT "pages".* FROM "pages" ORDER BY pages.id DESC LIMIT 1 | |
=> #<Page id: 3, parent_id: nil, position: 1, path: nil, created_at: "2011-05-11 02:44:43", updated_at: "2011-05-11 02:44:43", show_in_menu: true, link_url: nil, menu_match: nil, deletable: true, custom_title_type: "none", draft: false, skip_to_first_child: false, lft: 5, rgt: 6, depth: nil> | |
ruby-1.9.2-p0 > p.read_attribute(:path) | |
=> nil | |
ruby-1.9.2-p0 > p.read_attribute(:position) | |
=> 1 | |
ruby-1.9.2-p0 > p.attribute_names | |
=> ["title", "custom_title", "meta_keywords", "meta_description", "browser_title", "id", "parent_id", "position", "path", "created_at", "updated_at", "show_in_menu", "link_url", "menu_match", "deletable", "custom_title_type", "draft", "skip_to_first_child", "lft", "rgt", "depth"] | |
ruby-1.9.2-p0 > p.attributes | |
Creating scope :page. Overwriting existing method .page. | |
SystemStackError: stack level too deep | |
from /home/jadams/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/irb/workspace.rb:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment