Saiho Yuen
2006-Apr-24 15:47 UTC
[Rails] using helper which is placed outside of /app/helpers????
Hi, WE wanted to load a helper outside of app/helpers. Actually our helpers is placed in lib/commoncode/ for the ruby classes, we can simply use require "commoncode/myclass", but we can not do the same things with the helpers, we try: helper ''commoncode/ourhelpername'' -> error helper :commoncode/ourhelpername -> error Does someone know how to do this??? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Saiho Yuen
2006-Apr-25 13:13 UTC
[Rails] using helper which is placed outside of /app/helpers????
Hi, WE wanted to load a helper outside of app/helpers. Actually our helpers is placed in lib/commoncode/ for the ruby classes, we can simply use require "commoncode/myclass", but we can not do the same things with the helpers, we try: helper ''commoncode/ourhelpername'' -> error helper :commoncode/ourhelpername -> error Does someone know how to do this??? Thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com