[Rails] Re: including a module in my model rails 3

2011-01-28 Thread Robert Pankowecki (rupert)
you need to require it in rails 3 or add lib directory to autoload paths Robert pankowecki -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this

Re: [Rails] Re: including a module in my model rails 3

2011-01-27 Thread Victor S
I am having the same issue... -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: including a module in my model rails 3

2010-09-17 Thread Michael Schuerig
On Friday 17 September 2010, Almog Friedman wrote: i have a function that i wanna use in different models and i wanna do it DRY. so my best option as i see it is to include a module i made (that is in the lib/ directory) in the model. my code basicly looks something like this (for testing

Re: [Rails] Re: including a module in my model rails 3

2010-09-17 Thread Almog Friedman
the error i get is: NameError: uninitialized constant Test::ModelHelper On Fri, Sep 17, 2010 at 7:08 PM, Michael Schuerig mich...@schuerig.dewrote: On Friday 17 September 2010, Almog Friedman wrote: i have a function that i wanna use in different models and i wanna do it DRY. so my best