How to know whether a model is new or not?

Viewed 24798
class Post < ActiveRecord::Base
end

post = Post.new

How do I judge whether the 'post' is a new model which is not pulled from the database?

3 Answers
Related