Forum: Ruby on Rails Use of #h method in a controller

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Patrick D. (Guest)
on 2008-12-31 05:00
(Received via mailing list)
I have rails-2.2.2 installed on 2 different computers and routinely
back and forth between the two of them.  I just wrote some code today on
desktop in which I invoked the #h method inside a controller (because I
wanted to sanitize a string prior to saving it in an instance variable).
When I got home this evening and pulled the code onto my laptop, I found
that I got an undefined method error for h.

Why would it be undefined on one computer but not the other?  The only
that I can think of is that I (most likely) have different sets of gems
installed (although both have rails 2.2.2 installed)

Any ideas?

This topic is locked and can not be replied to.