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…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs