V
V
vdv_lg2014-10-04 15:02:58
Ruby on Rails
vdv_lg, 2014-10-04 15:02:58

What could be the rendering error in rails?

Internet shop. After including the cart rendering <%= render @cart %> in the application layout (application.html.erb), some pages of the site are not rendered and an error is displayed: "' ArgumentError 'nil' is not an ActiveModel-compatible object. It must implement :to_partial_path . "

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vsuhachev, 2014-10-04
@vsuhachev

perhaps @cart is not defined in all controllers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question