tamagohan
2012-Mar-28 02:59 UTC
How to change error message of authlogic only n certain cases
Hi all,
I update password of user and validate input data with "authlogic"
User must input current password, new password and new password
confirmation when user updates user''s password.
So, I want to display follow error message if user fails to update.
"new password is invalid."
I think to edit config/en.jml
attributes:
user:
password: "new password"
But, I want to display follow error message if fail to create new user
"password is invalid."
Because user input only password and password confirmation(and other
user information).
How to change error message only in the case of updating user''s
password?
appreciate any help.
Thank you
Masaki.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Apparently Analagous Threads
- Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError
- Foundation & Authlogic
- Migration from the "Restful Authentication" to "Authlogic"
- binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
- in a rails3 - rspec then require 'authlogic/test_case' and now I broke stuff?
