i have one comment controller to put comment on article
i have used this form add in my website part or some other
controller
put two validation
validates_presence_of(:name,:comment)
code of other controller
@comment = Comment.new
@commentgiven=Comment.find(:all,:conditions =>
"[email protected]}")
respond_to do |format|
format.html { render :file => "#{Rails.root}/app/
views/public/article.html.erb"}
format.xml { render :xml => @comment }
end
the validation error message is not showing in other
controller
any body can help me on this ..
thanks
rahul
--
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.