Private method `gsub' called for 2:Fixnum


#1

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.


#2

removed_email_address@domain.invalid 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.


#3

Max W. wrote:

removed_email_address@domain.invalid 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.

Oh and by the way, when looking at the stack trace it’s best to assume
that the problem isn’t with ruby, rails or whatever plugins you’re
using, and just read down the list for the first reference to your own
code :slight_smile: