<% form_tag 'create', :multipart => true do %> <%= error_messages_for :content_masters %> <p> <%= label_tag :title %> <%= text_field_tag :title %> </p> in my model m using
validates_presence_of(:title, :message => "message") On Mar 30, 12:19 pm, Yong Gu <zerogy...@gmail.com> wrote: > Could you please paste your update code again? > > On Tue, Mar 30, 2010 at 3:16 PM, Rahul Mehta <rahul23134...@gmail.com>wrote: > > > Can Any Body Help me....... > > > On Mar 28, 2:38 am, sachiguns <sachig...@gmail.com> wrote: > > > im also new to rails if u have good materials to learn rails please > > > tell me > > > send me links > > > thanks... > > > > On Mar 27, 5:33 am, Rahul Mehta <rahul23134...@gmail.com> 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 rubyonrails-t...@googlegroups.com. > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com> > > . > > 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.