Ruby on Rails Monday, December 7, 2015

On 6 December 2015 at 22:04, 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

It is getting rather tedious repeatedly pointing you to where in
railstutorial.org you can find the solution to the questions you ask.
In this case the answer is in section 6.1.3 Creating user objects.

I can only suggest once again that you take a couple of days out and
work right through that tutorial, including doing all the exercises.
Then you would not need to waste your time asking such questions.

Colin

--
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/CAL%3D0gLv-9rNyfKhdxQ-WyPXHqqg0Thn%2B7iJ1iVveci5Uew5b%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment