Ruby on Rails Sunday, December 6, 2015

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.

No comments:

Post a Comment