On 25 April 2012 08:13, Amir Z. <[email protected]> wrote:
> I am working with railspace social networking application. I did login
> logout registration process in it but as i am introducing the concept
> for remember me then stuck in the problem. it is showing the following
> error.
>
> private method `gsub' called for 4:Fixnum
>
> C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'
> C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in
> `to_s'
> C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in
> `collect'
> C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in
> `to_s'
> C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:80:in
> `set_cookie'
> C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:65:in
> `[]='
> app/controllers/user_controller.rb:27:in `login'

It is telling you the line that the problem is (line 27 in
user_controller.rb, which is a bit odd, I would have expected it to be
called users_controller.rb not user_controller.rb), and the error
tells you that you are calling gsub, but the object you are calling it
on is a number instead of a valid object that understands the method
gsub.  Have a look at that line.  Then if you cannot see the problem
have a look at the Rails Guide on debugging for suggestions on how to
debug your code.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to