search for: default_template_name

Displaying 3 results from an estimated 3 matches for "default_template_name".

2006 Aug 30
1
Shouldn't rxml files be exempt from layout by default?
...exempt extensions? I''d assume most people would be surprised to see their XML embedded in the middle of their (most probably) rhtml layout. http://dev.rubyonrails.org/svn/rails/trunk/actionpack/lib/ action_controller/base.rb: def template_exempt_from_layout?(template_name = default_template_name) template_name =~ /\.rjs$/ || (@template.pick_template_extension(template_name) == :rjs rescue false) end I''ve overrided it in my own application.rhtml as below but I''m thinking that this should probably be the default behaviour. def template_exempt_from...
2006 Feb 06
1
template choice error (layout.rb)
...ate controller/template I''m seeing this error: TypeError (can''t dup NilClass): /vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in `dup'' /vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in `default_template_name'' /vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:64:in `candidate_for_layout?'' /vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:58:in `apply_layout?'' /usr/lib/ruby/gems/1.8/gems/actionpack-1....
2006 Feb 02
4
How switching global layout (application.rthml <or> custom.rhtml)
Dears, My railsapp run using ''/layout/application.rhtml'' and under some conditions ( Authenticated user, url parameter) I like to switch globally to another layout, let''s say custom.rhtml Like : class AppController < ApplicationController before_filter :context_layout def index end end # application.rb def context_layout if <context_condition>