search for: find_templ

Displaying 5 results from an estimated 5 matches for "find_templ".

2007 Sep 29
1
templates with same name before extension are cached
...index.herb index.xerb The first request I send is cached and interferes with the other one. For example, if I send an xml request first, followed by html, here is what I see (those are just some debug statements I put in to follow the code) Request 1 "Accept: text/xml" - "starting find_template, options are :" {:action=>"index", :ext=>"rxml,xerb,builder"} - match on elsif action path is : /Users/dusty/nms/app/views/testing/index - no cache, created glob glob is : /Users/dusty/nms/app/views/testing/index.{rxml,xerb,builder} - searched Dir[glob].fir...
2012 Jul 26
2
Using the :layout option when calling render @variable
...bles/_variable.html.erb partial view), but as far as I know, Rails doesn''t support this. Here''s a quick patch that allows to use the :layout function: In partial_renderer.rb, add the following elsif block: if !block && (layout = @options[:layout]) layout = find_template(layout) elsif !block && (layout = @locals[:layout]) layout = find_template(layout) end I attached a patch so you don''t have to paste the two lines manually. I''m looking forward to your comments, and would love to see this merged in Rails 3.2.7, if...
2012 Nov 26
5
Missing template pages/layout only occasionally
...s", "page"=>"strategicrelationshipacademy", "action"=>"show"} /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.9.rc5/lib/action_view/paths.rb:15:in `find'' /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.9.rc5/lib/action_view/lookup_context.rb:81:in `find_template'' ... /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.9.rc5/lib/action_controller/metal/instrumentation.rb:39:in `render_without_wicked_pdf'' /var/www/procyon-live/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:19:in `render'' /var/www/procyon-live/app/controllers/pages_controlle...
2011 Feb 21
2
self.prepend_view_path - am I missing something
I have an app that varies its content based upon the domain from which it is being accessed. Some of the domain characteristics are supported in the model but it is easier varying static text in the views and then sharing the form templates via partials etc. Rails 2.3.10 and looking at the documentation at
2010 May 06
0
Problems using exception_notification 2.3.3.0
...tification" in environment.rb and ''include ExceptionNotification::Notifiable'' in application_controller.rb Now I am trying it out in development environment. It seems to catch my exception but fails to send email, here is the stacktrace found in the log: undefined method `find_template'' for #<Array:0x7f4cc5727d88> /var/lib/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:582:in `candidate_for_layout?'' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/layout.rb:245:in `pick_layout'' /var/lib/gems/1.8/gems/actionm...