private method `gsub' called for 2:Fixnum

RoR Error: “private method `gsub' called for 2:Fixnum”

I am new to RoR and trying to complete “RailsSpace Social Networking” example, all works fine until I have implemented cookies using authorization_token, and start getting following error when trying to login.

“private method `gsub' called for 2:Fixnum”

I can make out that there is something related to String conversion but not sure go forward to resolve this.

amitmahajan@post.com wrote:

It's hard to know without any more detail. The stack trace (the list of method calls etc that's shown on the crash page) should point you towards the problem.

Max Williams wrote: