I''m getting this error when running rake and im not too sure why..
rails is up to date and I used the post back generator to generate these
files
1) Error:
test_edit(TicketPurchasesControllerTest):
ActionView::TemplateError: No rhtml, rxml, or delegate template found
for ticket_purchases/_form
On line #15 of /ticket_purchases/edit.rhtml
12:
13: <div class="form">
14: <h2>Editing ticket_purchase</h2>
15: <%= render_partial "form" %>
16: </div>
17:
18: <div id="operations">
/gems/actionpack-1.6.0/lib/action_view/base.rb:213:in
`pick_template_extension''
/gems/actionpack-1.6.0/lib/action_view/base.rb:171:in
`render_file''
/gems/actionpack-1.6.0/lib/action_view/base.rb:195:in `render''
/gems/actionpack-1.6.0/lib/action_view/partials.rb:39:in
`render_partial''
(erb):15:in `evaluate_locals''
/gems/actionpack-1.6.0/lib/action_view/base.rb:265:in
`evaluate_locals''
/gems/actionpack-1.6.0/lib/action_view/base.rb:275:in
`rhtml_render''
/gems/actionpack-1.6.0/lib/action_view/base.rb:201:in `send''
/gems/actionpack-1.6.0/lib/action_view/base.rb:201:in
`render_template''
/gems/actionpack-1.6.0/lib/action_view/base.rb:181:in
`render_file''
/gems/actionpack-1.6.0/lib/action_controller/layout.rb:208:in
`render_without_benchmark''
/gems/actionpack-1.6.0/lib/action_controller/benchmarking.rb:22:in
`render''
/gems/actionpack-1.6.0/lib/action_controller/benchmarking.rb:22:in
`measure''
/gems/actionpack-1.6.0/lib/action_controller/benchmarking.rb:22:in
`render''
/gems/actionpack-1.6.0/lib/action_controller/base.rb:692:in
`perform_action_without_filters''
/gems/actionpack-1.6.0/lib/action_controller/filters.rb:294:in
`perform_action_without_benchmark''
/gems/actionpack-1.6.0/lib/action_controller/benchmarking.rb:30:in
`perform_action_without_rescue''
/gems/actionpack-1.6.0/lib/action_controller/benchmarking.rb:30:in
`measure''
/gems/actionpack-1.6.0/lib/action_controller/benchmarking.rb:30:in
`perform_action_without_rescue''
/gems/actionpack-1.6.0/lib/action_controller/rescue.rb:79:in
`perform_action''
/gems/actionpack-1.6.0/lib/action_controller/base.rb:323:in `send''
/gems/actionpack-1.6.0/lib/action_controller/base.rb:323:in
`process''
/gems/actionpack-1.6.0/lib/action_controller/test_process.rb:260:in
`process''
(eval):3:in `get''
./test/functional/ticket_purchases_controller_test.rb:50:in
`test_edit''
/usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `__send__''
/usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `run''
/usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run''
/usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each''
/usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run''
/usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run''
/usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each''
/usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run''
On Wed, 23 Mar 2005 20:09:07 -0800, Francisco Hernandez <lagcisco-b7MHZcQsHeJWk0Htik3J/w@public.gmane.org> wrote:> 1) Error: > test_edit(TicketPurchasesControllerTest): > ActionView::TemplateError: No rhtml, rxml, or delegate template found > for ticket_purchases/_form > On line #15 of /ticket_purchases/edit.rhtml > > 12: > 13: <div class="form"> > 14: <h2>Editing ticket_purchase</h2> > 15: <%= render_partial "form" %>I hate to point out the obvious here but it sounds like you''re missing a template. I''m not very familiar with how partials work, but you should have a file called ''_form.rhtml'' somewhere in your views subdirectory. More details about your installation would be required to troubleshoot this effectively, I think. -- One Guy With A Camera http://rbpark.ath.cx
Francisco Hernandez
2005-Mar-24 07:33 UTC
Re: why am I getting an error when running rake?
Hmm, you''re right! for some reason those partials are missing.. thanks for pointing this out though Rob Park wrote:> On Wed, 23 Mar 2005 20:09:07 -0800, Francisco Hernandez > <lagcisco-b7MHZcQsHeJWk0Htik3J/w@public.gmane.org> wrote: > >> 1) Error: >>test_edit(TicketPurchasesControllerTest): >>ActionView::TemplateError: No rhtml, rxml, or delegate template found >>for ticket_purchases/_form >> On line #15 of /ticket_purchases/edit.rhtml >> >> 12: >> 13: <div class="form"> >> 14: <h2>Editing ticket_purchase</h2> >> 15: <%= render_partial "form" %> > > > I hate to point out the obvious here but it sounds like you''re missing > a template. I''m not very familiar with how partials work, but you > should have a file called ''_form.rhtml'' somewhere in your views > subdirectory. > > More details about your installation would be required to troubleshoot > this effectively, I think. >