secret
Created

new post output

  • Download Gist
new post output rails.txt
1 2 3 4 5 6 7 8 9 10 11
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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.