The action 'index' could not be found for AdminData::CrudController
Closed this issue · 4 comments
lostmahbles commented
I get the following error when going to myapp.com/admin_data:
Unknown action
The action 'index' could not be found for AdminData::CrudController
When I run rake routes I get:
admin_data_index GET /admin_data/klass(/:klass)(.:format) {:controller=>"admin_data/crud", :action=>"index"}
admin_data_index POST /admin_data/klass(/:klass)(.:format) {:controller=>"admin_data/crud", :action=>"create"}
admin_data_new GET /admin_data/klass/:klass/new(.:format) {:controller=>"admin_data/crud", :action=>"new"}
admin_data_del DELETE /admin_data/klass/:klass/:id/del(.:format) {:controller=>"admin_data/crud", :action=>"del"}
admin_data_edit GET /admin_data/klass/:klass/:id/edit(.:format) {:controller=>"admin_data/crud", :action=>"edit"}
admin_data GET /admin_data/klass/:klass/:id(.:format) {:controller=>"admin_data/crud", :action=>"show"}
admin_data PUT /admin_data/klass/:klass/:id(.:format) {:controller=>"admin_data/crud", :action=>"update"}
admin_data DELETE /admin_data/klass/:klass/:id(.:format) {:controller=>"admin_data/crud", :action=>"destroy"}
admin_data_migration_information /admin_data/migration(.:format) {:controller=>"admin_data/migration", :action=>"index"}
admin_data_jstest /admin_data/jstest(.:format) {:controller=>"admin_data/migration", :action=>"jstest"}
admin_data_table_structure /admin_data/table_structure/:klass(.:format) {:controller=>"admin_data/table_structure", :action=>"index"}
admin_data_search /admin_data/quick_search/:klass(.:format) {:controller=>"admin_data/search", :action=>"quick_search"}
admin_data_advance_search /admin_data/advance_search/:klass(.:format) {:controller=>"admin_data/search", :action=>"advance_search"}
admin_data_feed /admin_data/feed/:klasss(.:format) {:format=>"rss", :controller=>"admin_data/feed", :action=>"index"}
admin_data /admin_data/public/*file(.:format) {:controller=>"admin_data/public", :action=>"serve"}
admin_data_root /admin_data(.:format) {:controller=>"admin_data/home", :action=>"index"}
neerajsingh0101 commented
what version of Rails you are using?
Also can you post or email me your routes file.
lostmahbles commented
Rails 3.0.0 and I'll e-mail you the routes file.
neerajsingh0101 commented
It seems you are using an older version of admin_data. Can you try
gem 'admin_data', '= 1.1.11'
bundle update admin_data
lostmahbles commented
That worked, sorry for not trying that first.