Forum: Ruby on Rails third party helper module (newbie)

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.
surge (Guest)
on 2007-06-06 19:11
(Received via mailing list)
Hello everybody,

I found a cool helper for generating dependant select controls by
Dimitrij Denissenko, which I don't quite know how to install it. The
structure of the helper is as follows:

module ActionView
  module Helpers
    module RelatedSelectFormOptionsHelper

So, I tried to stick it in my app/helpers and do
"helper :related_select_form_options" in a controller, which produces
exactly this: "app/helpers/related_select_form_options_helper.rb to
define RelatedSelectFormOptionsHelper"

If I put the thing into the site helpers directory, I get "couldn't
find related_select_form_options_helper.rb".

So, I don't quite know how to proceed from here. What's the best way
to do it?
Sergei Gerasenko (Guest)
on 2007-06-07 00:08
(Received via mailing list)
Solved. Hope it will help somebody. Basically, after some extensive
I found out that the way to do it is to put the code in a file and then
"require" it from environment.rb. Found the answer here: in the comments section. Kudos
evansj who wrote the comment.
This topic is locked and can not be replied to.