I have this system where I use ActiveAdmin to automate the backend and I was wondering if anyone tried to use in-place editing with tables for ActiveAdmin.
I see some scenarios where that would be useful: key-value tables (like State, Category, etc.) and in master-detail views (Order and OrderItems)...
Have anyone attempted to implement it? Any good pointers?
We've used best_in_place Editor but only on customized views, not on generic ones.
https://github.com/bernat/best_in_place
Add the best_in_place script to
/app/assets/javascripts/active_admin.js
:in your custom view partial you can have something like
As ActiveAdmin has already setup your RESTful Actions and BestInPlace is using RESTful PUT to Update too, everything should work automatically :)
You may can also use something like this, but I've not tested this yet.
Actually Best In Place monkey patch for Active Admin views is very easy: