Take off the slash?

   <%= render :partial => 'captcha' unless action_name == 'edit' %>

-Rob

Rob Biedenharn          http://agileconsultingllc.com
r...@agileconsultingllc.com

On Jun 7, 2009, at 12:22 AM, Matt W. wrote:

>
> When I run my functional tests, they throw an error with the following
> message:
>
> ActionView::TemplateError: Missing template /_captcha.erb in view path
> app/views:test/vendor/plugins/brain_buster/views/brain_busters
>    On line #23 of app/views/contacts/_form.html.erb
>
>        20:     <%= f.label :message %><br />
>        21:     <%= f.text_area :message %>
>        22:   </div>
>        23:   <%= render :partial => '/captcha' unless action_name ==
> 'edit' %>
>        24:   <div><%= f.submit "Submit" %></div>
>        25: <% end %>
>
>        app/views/contacts/_form.html.erb:23
>        app/views/contacts/_form.html.erb:1
>        app/views/contacts/edit.html.erb:1
>        app/controllers/contacts_controller.rb:41:in `update'
>
> I've checked to make sure the partial is in the right location, it is
> in this directory:
>
> /vendor/plugins/brain_buster/views/brain_busters/_captcha.html.erb
>
> Any ideas as to why the test can't find the partial? It works fine
> when I test it manually (via the browser).




--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to