hi,
i’m having a little trouble rendering a partial that uses a
remote_form_for and is in another controller.
<%= render :partial => “reviews/new”-%>
and in the partial i have only this, inside another controller
<% remote_form_for @review do |rv|-%>
<%= rv.hidden_field :value, :value => 1 -%>
<%= rv.image_submit_tag “thumbsupnc.png” %>
<% end -%>
the error that i’m getting is
undefined method `reviews_path’ for #ActionView::Base:0x4997dd0
if i render the template from the reviews folder i get the same problem.
any help would be appreciated
Daniel F. wrote:
hi,
i’m having a little trouble rendering a partial that uses a
remote_form_for and is in another controller.
<%= render :partial => “reviews/new”-%>
and in the partial i have only this, inside another controller
<% remote_form_for @review do |rv|-%>
<%= rv.hidden_field :value, :value => 1 -%>
<%= rv.image_submit_tag “thumbsupnc.png” %>
<% end -%>
the error that i’m getting is
undefined method `reviews_path’ for #ActionView::Base:0x4997dd0
if i render the template from the reviews folder i get the same problem.
any help would be appreciated
hi!
I have the same error and have no idea where the problem is. Has anyone
found a solution? Thank you very much by advance.