Forum: Ruby on Rails using helper which is placed outside of /app/helpers????

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A9b164143d290c49d56504e1f092689f?d=identicon&s=25 sayoyo S. (sayoyo)
on 2006-04-24 17:49
(Received via mailing list)
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
A9b164143d290c49d56504e1f092689f?d=identicon&s=25 sayoyo S. (sayoyo)
on 2006-04-25 15:14
(Received via mailing list)
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
This topic is locked and can not be replied to.