I want to assign a progressive number to an attribute. I think that I can do this in the model
class Model < ActiveRecord::Base before_validation(:on => :create) do attribute = Model.count + 1 But there is no method count for Model. I think I'm doing wrong. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

