search for: view_root

Displaying 2 results from an estimated 2 matches for "view_root".

Did you mean: new_root
2008 Mar 24
2
render not able to locate template in publisher
Hi guys, I have a publisher called UserPublisher setup in models directory of my app. The reason I have it in a model is because its then possible for me to invoke publisher methods in after_callbacks of my other models, just the way we do it for ActionMailer. My problem is that when I try to update a users profile specifying location of the view template as a paramater to "profile"
2008 Jun 14
0
does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]
...th 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 perfectly if I open the script/console and calls invoice.print_invoice from there! How...