Displaying 13 results from an estimated 13 matches for "pick_template_extension".
2005 Dec 19
1
Preserving fallback with RJS
...ly, I guess I''m looking for a
way to specify when I want to render an RJS template over another.
Thoughts?
Also, I''ll show the code that I think pertains so you can see what
might need to be changed.
Looking at the render code which controlls which template we go to...
def pick_template_extension(template_path)#:nodoc:
if match = delegate_template_exists?(template_path)
match.first
elsif erb_template_exists?(template_path): ''rhtml''
elsif builder_template_exists?(template_path): ''rxml''
elsif javascript_template_exi...
2008 Mar 04
2
Action Mailer throwing underscores on template name
...leases/
20080303165433/vendor/plugins/exception_notification/lib/../views/
exception_notifier):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/
base.rb:401:in `find_template_extension_for''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/
base.rb:332:in `pick_template_extension''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/
base.rb:249:in `render_file''
(eval):4:in `render_message''
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/lib/action_mailer/
base.rb:424:in `create!''
/usr/lib/ruby/gems/1.8/gems/action...
2006 Aug 01
2
actionmailer cant find template in backgroundrb
...r:
No rhtml, rxml, rjs or delegate template found for daily_report -
(ActionView::ActionViewError)
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:387:in
`find_template_extension_for''
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:321:in
`pick_template_extension''
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:238:in
`render_file''
d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:272:in
`render''
d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.3/lib/action_mailer/base.rb:363:in
`rend...
2006 Jun 08
1
No rhtml, rxml, or delegate template found
...=> {:poll =>
@poll, :user => @user} %>
<% else %>
....
gives me the error =>
No rhtml, rxml, or delegate template found for polls/_antwoorden_user
here''s is the application trace
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:281:in
`pick_template_extension''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:195:in
`render_file''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:220:in
`render''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:58:in
`r...
2006 Jun 05
1
Action Mailer contact form
...nd
=========================================================
Application trace is as follows:
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:387:i
n `find_template_extension_for''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:323:in `pick_template_extension''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:238:in `render_file''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:272:in `render''
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:363:in...
2005 Dec 21
2
Missing error page templates
...is is from the logs:
ActionView::ActionViewError (No rhtml, rxml, rjs or delegate template
found for /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/templates/rescues/template_error.rhtml):
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_view.rb:10:in
`pick_template_extension''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:195:in
`multilingual_old_render_file''
/vendor/plugins/multilingual/lib/multilingual/rails/action_view.rb:15:in
`render_file''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_control...
2005 Dec 18
3
undefined local variable in partial
...ment.log is see the following:
ActionView::ActionViewError (No rhtml, rxml, or delegate template found for
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2
/lib/action_controller/templates/rescues/template_error.rhtml):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:281:in
`pick_template_extension''
Any hints?
Regards,
Torsten
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 16
0
Error in Depot App after Upgrading to 1.0
...d a blank page in the browser:
ActionView::ActionViewError (No rhtml, rxml, or delegate template found for
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2
/lib/action_controller/templates/rescues/template_error.rhtml):
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:281:in
`pick_template_extension''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:195:in
`multilingual_old_render_file''
.//vendor/plugins/multilingual/lib/multilingual/rails/action_view.rb:15:in
`render_file''
I don''t see any errors concerning my rails code and looked...
2005 Dec 17
0
Re: ActionViewError in Depot App after Upgrading to 1.0
...:
>
> ActionView::ActionViewError (No rhtml, rxml, or delegate template found
> for /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2
> /lib/action_controller/templates/rescues/template_error.rhtml):
> /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:281:in
> `pick_template_extension''
> /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:195:in
> `multilingual_old_render_file''
>
> .//vendor/plugins/multilingual/lib/multilingual/rails/action_view.rb:15:in
> `render_file''
>
>
> I don''t see any error...
2006 Aug 30
1
Shouldn't rxml files be exempt from layout by default?
...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_layout?(template_name =
default_template_name)
super || template_n...
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone,
Like so many other here, I too am new to Rails (and Ruby), and so far
it''s been a great experience. I haven''t been able to get around one
problem though. When trying to use the mailer, I recieve an error like
this:
ActionView::ActionViewError in Tell_friend#send_email
No rhtml, rxml, or delegate template found for send_to_friend
The scenario is this:
A form on
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
...Error (undefined method `to_sym'' for
{"6"=>"1"}:HashWithIndifferentAccess):
/usr/lib64/ruby/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-...
2008 Jun 10
7
ActionMailer undefined method `parameters' - Rails 2.1
...RequestsController#create
undefined method `parameters'' for {:greeting=>"WAUW"}:Hash
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:301:in
`template_format''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_finder.rb:138:in
`pick_template_extension''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:68:in
`set_extension_and_file_name''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:15:in
`initialize''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:2...