Displaying 1 result from an estimated 1 matches for "month_name".
Did you mean:
meth_name
2007 May 07
3
Module Madness
...tained the navigation.
I ran into a lot of difficulty when trying to include it, the primary
problem being "methodUndefined" errors. I did finally get it to work,
but I''m not sure why. Here''s the relevant bits:
my_app.rb
MyApp::Helpers
include Global::Helpers
def month_name
...helper code
end
end
MyApp::Views
def layout
...some markaby
:navigation #throws an UndefinedMethod error if not a symbol
...some more markaby
end
end
global.rb
module Global
module Helpers
def navigation
...what i need
end
end
end
If I list the instanc...