Customizing error page

hi all,

       im having validations in my model so if i give wrong inputs

while creating new row error messages are coming but i want to change
the way it looks and edit the error messages.the error message is
comming in a red color box i want to change it.people know it please
help me.

I am not sure if the response is this simplistic or not, but…
Assuming you just mean the style of the message, not the text itself,
just have a look at the css file for the page, which is under the
<RAILS_DIR>/public/stylesheets directory (or you could always hack it
by altering the style for the div element holding the error message in
the layout rhtml file, located in <RAILS_DIR>/app/views/layouts).

/Brad.

ya i can able to edit the style of the display now but i want to edit
the content inside too.like its showing “phone no is too short” i want
to change it to something else.do u have idea for it.

On 9 Apr 2008, at 14:08, Karthikragunath B. wrote:

ya i can able to edit the style of the display now but i want to edit
the content inside too.like its showing “phone no is too short” i want
to change it to something else.do u have idea for it.

You can pass the :message option to your validations.

Fred

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