[Rails] Model validation are not displaying properly

2011-02-08 Thread Tushar Gandhi
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

Re: [Rails] Model validation are not displaying properly

2011-02-08 Thread Colin Law
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