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
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