Manish Nautiyal
2008-Apr-22 19:55 UTC
how to show validation error msg of model in html area
Hi I m new to ROR I have some validation that I''m doing in a model. for example ----> class Book < ActiveRecord::Base belongs_to :subject validates_presence_of :title, :message=>"Error Message" validates_numericality_of :price, :message=>"Error Message" end Now i want to show this error message in html area when title is empty or when user puts price not a numeric???????? Help meeee.................... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---