Could you give more detail on exactly what the problem is, what you've
tried and what you expect?

I looked at by_password.rb at
https://github.com/technoweenie/restful-authentication/blob/master/lib/authentication/by_password.rb
and it does things like

    validates_presence_of :password, :if => :password_required?

Do you get the wrong message from those? What message do you get and
what message did you expect instead?

What's the deal with your custom keys like "en.passwordpresent"? Are
you attempting to have Rails use those? If so, how?

On Sat, Feb 12, 2011 at 21:02, James Gaston <[email protected]> wrote:
>
> Thanks, but I've gone down this route already. The key thing to note: all 
> model errors in my app are printed correctly except one: the 
> restful_authentication signup step. For example, here is my en.yml:
>
> en:
>   use_only_lets:
>     use only letters, numbers
>   passwordpresent:
>     password required
>   confirmation:
>     password doesn't match confirmation
>   passwordlength:
>     password must be 6-40 characters long
>   activerecord:
>     errors:
>       template:
>         body: There were problems with the following fields
>         header:
>           one: 1 error prohibited this %{model} from being saved
>           other: "%{count} errors prohibited this %{model} from being saved"
>         messages:
>           inclusion: "is not included in the list"
>           exclusion: "is reserved"
>           invalid: "is invalid"
>           confirmation: "doesn't match confirmation"
>           accepted: "must be accepted"
>           empty: "can't be empty"
>           blank: "can't be blank"
>           too_long: "is too long (maximum is %{count} characters)"
>           too_short: "is too short (minimum is %{count} characters)"
>           wrong_length: "is the wrong length (should be %{count} characters)"
>           taken: "has already been taken"
>           not_a_number: "is not a number"
>           greater_than: "must be greater than %{count}"
>           greater_than_or_equal_to: "must be greater than or equal to 
> %{count}"
>           equal_to: "must be equal to %{count}"
>           less_than: "must be less than %{count}"
>           less_than_or_equal_to: "must be less than or equal to %{count}"
>           odd: "must be odd"
>           even: "must be even"
>           bad_email: "Email should look like an email address"
>           bad_login: "Use only letters and numbers for your user name"
>           bad_name: "Use only legal characters in your name"
>
> --
> You received this message because you are subscribed to the Google Groups 
> "rails-i18n" 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/rails-i18n?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"rails-i18n" 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/rails-i18n?hl=en.

Reply via email to