Hi,
I've just setup the gem and it seems to be working fine. However, I don't have a search bar on indexes as there is on the demo:
https://administrate-prototype.herokuapp.com/admin/orders
Is there a particular setup to get the search bar ?
EDIT: I have a search bar on one model among 30, but I can't find why. I didn't do anything in particular for this model.
Found the solution:
you need to customize the index controller action and pass search_term as true
I'm glad you figured out your problem!
Do you think this is something we should highlight in our docs? If so, I'd love to see a PR for it.
In the mean time, I'm going to close this specific issue.
The problem for me was the COLLECTION_ATTRIBUTES in all my dashboards were defaulting to unsearchable fields, thus making the show_search_bar? method in Administrate::ApplicationController always return false and not show the search bar.
Most helpful comment
The problem for me was the
COLLECTION_ATTRIBUTESin all my dashboards were defaulting to unsearchable fields, thus making theshow_search_bar?method inAdministrate::ApplicationControlleralways return false and not show the search bar.