Displaying 6 results from an estimated 6 matches for "find_template_extension_for".
2007 May 23
2
rspec mocha and controller specs without integrated_views
...iven?
unless integrate_views?
@template.stub!(:file_exists?).and_return(true)
@template.should_receive(:render_template).any_number_of_times.and_return(true)
{ |*args|
@first_render ||= args[2]
}
@template.stub!(:find_template_extension_for).and_return("rhtml")
@template.stub!(:read_template_file).and_return("this is fake
content generated by rspec")
end
end
I am getting the following error: undefined method `stub!''
Any plans on fixing this?
Matt
2008 Mar 04
2
Action Mailer throwing underscores on template name
...:ActionViewError (No rhtml, rxml, rjs or delegate template
found for exception_notification_ in /var/rails/nick_warren/releases/
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....
2006 Aug 01
2
actionmailer cant find template in backgroundrb
....]
NotificationMailer.create_daily_report(users, rep, items)
end
end
end
its throwing the following error:
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.r...
2006 Jun 05
1
Action Mailer contact form
...:action => ''index''
13. end
14. end
15.
16. def get_contact
17. @contact
18. end
19.
20. end
=========================================================
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/...
2008 Sep 24
0
Rspec, HAML, view testing
...in ''shared/_jar_layout should render it''
Missing templatet users/_foo.html.erb in view path ....
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:85:in `raise_missing_template_exception''
I have tried stubbing the template via
@template.stub!(:find_template_extension_for).and_return("haml") # same
error return
Thanks in advance,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPx...
2008 Sep 25
0
Rspec, HAML with view testing
...e in ''shared/_jar_layout should render it''
Missing templatet users/_foo.html.erb in view path ....
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template.rb:85:in `raise_missing_template_exception''
I have tried stubbing the template via
@template.stub!(:find_template_extension_for).and_return("haml") #
same error returned
Any ideas on having the template load the correct view?
Thanks in advance,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To...