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
In your admin/product.rb
you can put this code:
ActiveAdmin.register Product, :as => "All Product" do
end
Hopefully, this will help.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.