Croplio Croplio - 1 year ago 63
Ruby Question

How to know whether a model is new or not?

class Post < ActiveRecord::Base

post =

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

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download