Displaying 1 result from an estimated 1 matches for "debug_helper_modules".
Did you mean:
debug_helper_module
2006 Apr 07
0
what goes where on ruby on rails?
...ire "format"
in \app\controllers\application.rb
2. 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
require "debug_helper_modules"
# Methods added to this helper will be available to all templates in the
application.
module ApplicationHelper
include DebugHelper
end
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 everythin...