Bob S. wrote:
On 9/20/07, Max W. [email protected] wrote:
Btw, this might be to do with the fact that ModelExtensions is itself a
module - can you include a module in another module?
Yes, you can include a module in another module.
I’m not familiar with ModelExtensions, but something like this should
work (put it in your general_helpers.rb)
That doesn’t seem to work for me…let me just run through what i have
now as i may have got confused somewhere.
I have a file in the lib folder called “general_helpers.rb” with
And i have a method in my Movie model that looks like this:
when i call this method on an instance of type Movie (in a view) i get
“undefined local variable or method `hello’ for #Movie:0x44c9a38”
I tried restarting the server just in case, but it didn’t help…