Hi,

How would people feel about an error_message_on helper?

<%= f.label_for :name %>
<%= f.text_field :name  %>
<%= f.error_message_on :name %>

I think it would be nice if this returned the error message in a <span
class="errorMessage"> so all messages could be styled easily and
consistently.

Peter
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to