[Rails] Re: How to disable has_secure_password validation when a condition is true?
Hi,
I haven't tried it but would go for this:
http://guides.rubyonrails.org/active_record_validations_callbacks.html#conditional-validation
You probably didn't used right conditions. To figure it out I always
use Rails console. Create 2 users, a FB and a nonFB and try them out.
On Apr 3, 7:57 pm, IAmNan <dger...@gmail.com> wrote:
> Did you ever get a solution to this? My app also allows authentication
> outside without the password.
>
> On Feb 15, 9:23 pm, David M <idav...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Yes, I already watched those screencasts, but I still don't know how to do
> > it.
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home