Hi,
I am facing a problem with active record validations.
I have a coupon model, which has following validation:-
#coupon.rb
class Coupon ActiveRecord::Base
validates_presence_of :vendor_id, :message=:Select a vendor
validates_presence_of :coupon_code, :message=:Coupon code should not
be
On 8 February 2011 12:00, Tushar Gandhi li...@ruby-forum.com wrote:
Hi,
I am facing a problem with active record validations.
I have a coupon model, which has following validation:-
#coupon.rb
class Coupon ActiveRecord::Base
validates_presence_of :vendor_id, :message=:Select a vendor
2 matches
Mail list logo