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

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.
D4e855a28dbcc327042084be99f6147b?d=identicon&s=25 surge (Guest)
on 2007-06-06 17: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
...
    end
 end
end

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?
D4e855a28dbcc327042084be99f6147b?d=identicon&s=25 Sergei Gerasenko (Guest)
on 2007-06-06 22:08
(Received via mailing list)
Solved. Hope it will help somebody. Basically, after some extensive
research
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:
http://snippets.dzone.com/posts/show/1916 in the comments section. Kudos
to
evansj who wrote the comment.
This topic is locked and can not be replied to.