Long-time programming consultant ~ preaching the benefits of Ruby and Rails to anyone who will listen and many who don't
Sign in to post a Greeting.
And that last test that was failing was because I forgot the uncomment one of the lines we had commented out in the user.rb file when you were helping me last night. Doh!!!
I confirmed it by opening up a irb console then:
>> r="RUBY"
>> r=r.downcase # Output will be "ruby"
But if I do this:
r=r.downcase! # Output will be nil
The last line is canceling itself out.
It appears that:
before_save { |user| user.email = email.downcase!
}
does puts in nil because I was modifying the email attributes AND trying to assign it to the same email attributes in the same line.
Hey Stuart, I finally figured out why that line in my user.rb file failed.
Never mind, I figure it out. The Github repo didn't have the .exe file so I found it at another repo. Works like a charm now!
Hey, Stuart. Stupid question but what do I have to run after I extract the files? I followed your instructions but it didn't work. Do I have to compile it, just run a batch file. I'm lost