#32 ✓ resolved
Richard Grundy (RichGuk)

The example code in the comments are invalid for error_messages_for

Reported by Richard Grundy (RichGuk) | February 1st, 2010 @ 02:31 PM

In the docblock here:

# ==== Examples # <%= error_messages_for :person %> # <%= error_messages_for :person {|errors| "You can has probs nao: #{errors.size} of em!"} # <%= error_messages_for :person, lambda{|error| "

  • #{error.join(' ')}"} %> # <%= error_messages_for :person, nil, 'bad_mojo' %>

These two appear to be invalid?

# <%= error_messages_for :person {|errors| "You can has probs nao: #{errors.size} of em!"} # <%= error_messages_for :person, lambda{|error| "

  • #{error.join(' ')}"} %>

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages