search for: template_exempt_from_layout

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

2006 Aug 30
1
Shouldn't rxml files be exempt from layout by default?
...hink it makes sense to add rxml to the list of 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...
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
...uby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:420:in `template_format'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:396:in `pick_template_extension'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1259:in `template_exempt_from_layout?'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/layout.rb:278:in `apply_layout?'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/layout.rb:256:in `render_without_benchmark'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2....