I think this subject deserves a cheat page.
Where would you put the following
- enhacements to base classes
(like Numeric.format_integer or Time.format_shor_date)
I created files in \lib (like \lib\format.rb) and added
- general helpers I want to be available to every view
I created a file in \lib (like \lib\debug_helper_module.rb), with a
module definition (like “module DebugHelper”)
then in \app\helpers\application_helper.rb
Methods added to this helper will be available to all templates in the
but it didn’t work
Well, I’m just giving my first steps with ruby, but it would be great to
have a list telling where to put everything, in order to have a clean
and tidy environment.