Forum: Ruby on Rails No rhtml, rxml, or delegate template found

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Klaas debeuf (Guest)
on 2006-06-08 13:40
hi ,

i'm having a problem with rendering a partial , the partial is in the
apps/view/polls folder with the name : _antwoorden_user.rhtml

in the view i'm rendering it with
<% if @user %>
 <%=  render :partial => 'polls/antwoorden_user', :locals => {: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
`render_partial'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
`benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:29:in
`measure'
c:/ruby/lib/ruby/1.8/benchmark.rb:307:in `realtime'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:29:in
`benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
`render_partial'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:230:in
`render'
#{RAILS_ROOT}/app/views/polls/show.rhtml:15
-e:3:in `load'
-e:3

what is wrong , i'm searching for a couple of hours on this error

thanks

klaas
anonymous coward (Guest)
on 2006-06-08 16:03
don't know if the problem would be som simple(or maybe i'm the dumb
one?) but why did you put "polls/antwoorden_user" and not simply put
----

"antwoorden_user" (without the polls)

?

Klaas debeuf wrote:
> hi ,
>
> i'm having a problem with rendering a partial , the partial is in the
> apps/view/polls folder with the name : _antwoorden_user.rhtml
>
> in the view i'm rendering it with
> <% if @user %>
>  <%=  render :partial => 'polls/antwoorden_user', :locals => {: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
> `render_partial'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
> `benchmark'
> 
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:29:in
> `measure'
> c:/ruby/lib/ruby/1.8/benchmark.rb:307:in `realtime'
> 
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:29:in
> `benchmark'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
> `render_partial'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:230:in
> `render'
> #{RAILS_ROOT}/app/views/polls/show.rhtml:15
> -e:3:in `load'
> -e:3
>
> what is wrong , i'm searching for a couple of hours on this error
>
> thanks
>
> klaas
This topic is locked and can not be replied to.