I think form me i should be something like this below because I need different validations to each type of ads. Or in your example could i set up this kind of different validations?
> class Ad < ActiveRecord::Base > validates_presence_of :name, :email, :price(?), :category_id(?) > > :name > :phone_number > :email > :advertiser_id > :token > :verification_date > :level > :category_id > :admin_id > :price > :display_counter > :type > end > class RegularAd < Ad > validates_presence_of :title, :ad_content > > :title > :ad_content > end > class RideAd < Ad > validates_presence_of :from, :to > > :from > :to > end > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/IFi12eQy7hYJ. 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.

