# Third party helper module (newbie)

**URL:** <https://www.ruby-forum.com/t/third-party-helper-module-newbie/106122>\
**Category:** Rails\
**Created:** [June 6, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/third-party-helper-module-newbie/106122 "2007-06-06T17:11:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surge](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@surge](https://www.ruby-forum.com/u/surge)\
**Post date:** [June 6, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/third-party-helper-module-newbie/106122/1 "2007-06-06T17:11:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![surge](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@surge](https://www.ruby-forum.com/u/surge)\
**Post date:** [June 6, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/third-party-helper-module-newbie/106122/2 "2007-06-06T22:08:40Z")

</div>

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](http://snippets.dzone.com/posts/show/1916) in the comments section. Kudos  
to  
evansj who wrote the comment.
