Skip to content

Instantly share code, notes, and snippets.

@citrus
Created February 4, 2011 18:31
Show Gist options
  • Save citrus/811512 to your computer and use it in GitHub Desktop.
Save citrus/811512 to your computer and use it in GitHub Desktop.
NameError in Admin/products#index
Showing /usr/local/lib/ruby/gems/1.9.1/gems/spree_core-0.40.2/app/views/admin/products/index.html.erb where line #37 raised:
undefined local variable or method `to_ary' for #<Product:0x0000010551d460>
Extracted source (around line #37):
34: <% end %>
35: <td class="actions">
36: <%= hook :admin_products_index_row_actions, locals do %>
37: <%= link_to_edit product unless product.deleted? %>
38: &nbsp;
39: <%= link_to_clone product %>
40: &nbsp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment