Ruby on Rails Tuesday, June 26, 2012

On Jun 26, 2012, at 5:59 PM, cyber c. wrote:

> Hi Walter,
>
> Yah the ":" came from copy pasting my earlier comment.
> The result is the same(no errors) with one attribute or using
> validates_presense_of(tried with other validate* options too). I was
> wondering if that problem was to do with the view?
> Anyother way of displaying the errors?
>

Try running this in console, and see if you have any errors there. And in your view, are you using some variant of this:

<% flash.each do |name, msg| %>
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<% end %>

Walter



--
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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment