Create a gist now

Instantly share code, notes, and snippets.

new post output
mariuz@borkstationx64:~/work/mynewapp$ script/console
Loading development environment (Rails 2.3.5)
>> p = Post.new(:content => "A new post")
=> #<Post id: nil, name: nil, title: nil, content: "A new post", timestamps: nil>
>> p.save
=> true
>> p.errors
=> #<ActiveRecord::Errors:0x7f4d375a9908 @errors=#<OrderedHash {}>, @base=#<Post id: 1, name: nil, title: nil, content: "A new post", timestamps: nil>>
>> f = Post.first
=> #<Post id: 1, name: nil, title: nil, content: "A new post", timestamps: nil>
>> Post.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment