Michael or Aure, I have been working through the book and I must say that it has been very enjoyable. Most of the errors before I could find a fix, but I have gotten to a point where I am stuck, . My code is ok until i add the
on page 193-194, listing 7.10. I am receiving the error below:
NoMethodError in UserController#login private method `gsub' called for 5:Fixnum
I am using XP, MySQL, RadRails, and Firefox. Please let me know if you need anymore info....I am also on RailsSpace, http://railsspace.com/profile/jbaty. Again, thanks for a great book and hope to hear something soon.
I have found my issue, user.authorization_token is an integer and it needed to be a string so to just put duck tape on it i added .to_s and converted it to a string. I don't know if this is the correct way, but it allows me to continue in the book. My code now is:
> Michael or Aure, > I have been working through the book and I must say that it has been > very enjoyable. Most of the errors before I could find a fix, but I > have gotten to a point where I am stuck, . My code is ok until i add > the
> on page 193-194, listing 7.10. I am receiving the error below:
> NoMethodError in UserController#login > private method `gsub' called for 5:Fixnum
> I am using XP, MySQL, RadRails, and Firefox. Please let me know if you > need anymore info....I am also on RailsSpace,http://railsspace.com/profile/jbaty. > Again, thanks for a great book and hope to hear something soon.
Perhaps someone else with experience on XP and Radrails can help - I don't think we talk about gsub at all in the book, so I don't think this is an error in our code.
> Michael or Aure, > I have been working through the book and I must say that it has been > very enjoyable. Most of the errors before I could find a fix, but I > have gotten to a point where I am stuck, . My code is ok until i add > the
> on page 193-194, listing 7.10. I am receiving the error below:
> NoMethodError in UserController#login > private method `gsub' called for 5:Fixnum
> I am using XP, MySQL, RadRails, and Firefox. Please let me know if you > need anymore info....I am also on RailsSpace, > http://railsspace.com/profile/jbaty. > Again, thanks for a great book and hope to hear something soon.
I got this from someone reading RailsSpace and I think it sheds some light on the situation.
Aure
====
In the chapter 7 on page 195 Listing 7.11 you set the following..
user.authorization_token = user.id
I know this is temporary because it gets switched later and when you change it out for the Digest::SHA1.hexdigest.. code it works fine but if one tries the code before then you run into the error below.
> I have found my issue, user.authorization_token is an integer and it > needed to be a string so to just put duck tape on it i added .to_s and > converted it to a string. I don't know if this is the correct way, but > it allows me to continue in the book. My code now is:
> Let me know if I am on the right path..... Again, GREAT BOOK!!!!! > Thanks....jonathan
> On Aug 21, 3:07 pm, jonbaty <jonb...@gmail.com> wrote: > > Michael or Aure, > > I have been working through the book and I must say that it has been > > very enjoyable. Most of the errors before I could find a fix, but I > > have gotten to a point where I am stuck, . My code is ok until i add > > the
> > on page 193-194, listing 7.10. I am receiving the error below:
> > NoMethodError in UserController#login > > private method `gsub' called for 5:Fixnum
> > I am using XP, MySQL, RadRails, and Firefox. Please let me know if you > > need anymore info....I am also on RailsSpace, > http://railsspace.com/profile/jbaty. > > Again, thanks for a great book and hope to hear something soon.