Displaying 2 results from an estimated 2 matches for "master_helper_module".
2006 Aug 14
0
ActionMailer in an infinite loop? Looks like framework bug.
...e one.
So this is happening when it tries to load the ruby file. So I opened
helpers.rb in ActionMailer and I found the following:
Line 95: helpers.rb: ActionMailer 1.2.5
---------------------------------------
def inherited_with_helper(child)
inherited_without_helper(child)
begin
child.master_helper_module = Module.new
child.master_helper_module.send :include, master_helper_module
child.helper child.name.underscore
rescue MissingSourceFile => e
raise unless
e.is_missing?("helpers/#{child.name.underscore}_helper")
end
end
The first line of this method is inherited_withou...
2008 Jun 14
0
does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]
...end
and the self.class.render_string looks like this
# Renders a template to a string with the included variable assignments
def self.render_string(template, assigns)
viewer = Class.new(ApplicationController)
view = Class.new(ActionView::Base)
view.send(:include, viewer.master_helper_module)
path = ActionController::Base.view_paths rescue
ActionController::Base.view_root
view.new(path, assigns, viewer).render(template) end
I have a show.html.erb under app/views/invoices which holds the HTML to
go with the show action on the InvoicesController.
Everything is working...