I have a silly search method like
class User
def self.search(key,max=10)
dummy like() query based on key
end
end
I tried adding this resource to the admin interface, but it causes activeadmin to fail. As far as I understand the code in collections.rb ends up invoking my custom search method (on page load, which seems strange) without knowing what parameters are acceptable, and when this fails it ìs unable to go on with building the rest of the UI.
This seems related to #25. Happens with ruby 1.8.7, rails 3.0.7, using User class as the admin (devise user class), ActiveAdmin gem 0.2.1
I have a silly search method like
I tried adding this resource to the admin interface, but it causes activeadmin to fail. As far as I understand the code in collections.rb ends up invoking my custom search method (on page load, which seems strange) without knowing what parameters are acceptable, and when this fails it ìs unable to go on with building the rest of the UI.
This seems related to #25. Happens with ruby 1.8.7, rails 3.0.7, using User class as the admin (devise user class), ActiveAdmin gem 0.2.1