On 8 February 2011 12:00, Tushar Gandhi <[email protected]> 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" > validates_presence_of :coupon_code, :message=>":Coupon code should not > be blank." > end > > Validations are working but whenever it gets rendered on browser it is > not showing the actual message. It is showing like as follows:- > > " > There were problems with the following fields: > > * {{attribute}} {{message}} > * {{attribute}} {{message}} > * {{attribute}} {{message}} > "
I believe this is an internationalisation problem. I don't know the details as I don't use Internationalisation, but hopefully this will send you down the right track. Colin -- 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.

