[Rails] validating message

2010-03-27 Thread Rahul Mehta
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

Re: [Rails] validating message

2010-03-27 Thread Lasse Bunk
Hi Rahul, The symbol (:content_masters) in error_messages_for should be the name of a variable, so if you wanted to display error messages for at variable called @user, you'd call it like this: %= error_messages_for 'user' % Please also see

Re: [Rails] validating message

2010-03-27 Thread Yong Gu
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

Re: [Rails] validating message

2010-03-27 Thread Colin Law
On 27 March 2010 12:33, 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 %