Thanks Colin for your response. The error _looks_ like a runtime error, however the error message that is given is:
ActiveRecord::RecordInvalid in CommentsController#create Validation failed: Sorry, that's an invalid move. which tells me the validation is working, however what I want is to style it in a way that gives off a red warning directly on the page. Thanks! Colin Law wrote: > On 1 September 2010 03:35, Ze Ca <li...@ruby-forum.com> wrote: >> secondly, why can't I style the error? > Can you provide an example of what you mean? If you are getting a > runtime Ruby error then you should never allow that to happen in your > code, so there is no need to style it. If for example a variable may > be nil then you must test for nil before using it. Perhaps I > misunderstand what you mean however. > > Colin -- Posted via http://www.ruby-forum.com/. -- 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.