Hii Yong, As i have given the syntax above would you tell me what is the syntax i used because i have tried so much but its not working...
thanks rahul On Mar 27, 6:01 pm, Yong Gu <[email protected]> wrote: > Hi, > > I think you should use *error_message_on(object, method)* if you want to > show the error of one specified field, like 'title', 'description' > > and use *error_messages_for(object)* if you want to show all the validation > errors in this object > > On Sat, Mar 27, 2010 at 8:33 PM, Rahul Mehta <[email protected]>wrote: > > > Hi all, > > > I'm new here. However, I'm so happy because I got Ruby on Rails to > > work on my host. Now there's just a problem with displaying > > validation error message , > > > in my view i have used the form_tag code is as follow > > > <% form_tag 'create', :multipart => true do %> > > > <%= error_messages_for :content_masters %> > > <p> > > <%= label_tag :title %> > > <%= text_field_tag :title %> > > </p> > > > content_masters is my controller name .. > > > in my model m using > > > validates_presence_of(:title, :message => "message") > > > the validation message is not coming .. > > > I hope you want to help me. > > > Thanks > > > -- > > 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]<rubyonrails-talk%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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.

