Ruby on Rails Sunday, December 6, 2015

If you are using Devise or anything like it, you may need to also have password_confirmation = "password" in order to get past that requirement.

Walter

> On Dec 6, 2015, at 5:04 PM, fugee ohu <fugee279@gmail.com> wrote:
>
> I've been trying to do it from memory something like this, but it's not working it keeps returning rollback and false
>
> a=Admin.create
> a=Admin.find(1)
> a.email="user@host.com"
> a.password="password"
> a.save
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0421524d-0572-4c09-b9e8-8cca035d07f5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/29DF7E05-1FF4-488C-A17E-8CA68D0334D1%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment