Reputation: 353
I try to implements active_admin in my app, and i'm follow this tutorial :
http://activeadmin.info/documentation.html
But when i'm execute this command in my console :
rails generate active_admin:resource product
The file successfully generate :
app/admin/product.rb
But when i'm access index product page in active_admin i get error like this :
ActionView::Template::Error (undefined method `group_values' for #<Array:0xcfe093c>)
how to fix this? thanks before
Upvotes: 1
Views: 508
Reputation: 1654
In your admin/product.rb
you can put this code:
ActiveAdmin.register Product, :as => "All Product" do
end
Hopefully, this will help.
Upvotes: 1