I have some code that I want to share between models and views. I am making it part of a module in a new file in /lib/ and requiring it where needed (/lib/ being part of the LOAD_PATH). Reasonable ? -- Posted via http://www.ruby-forum.com/.
That''s what I do! On 7/15/06, Richard Haven <rails@thistooshallpass.org> wrote:> I have some code that I want to share between models and views. > > I am making it part of a module in a new file in /lib/ and requiring it > where needed (/lib/ being part of the LOAD_PATH). > > Reasonable ? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >