Skip to content

@mariuz /new post output rails.txt secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Something went wrong with that request. Please try again.