gregbell/active_admin — Issue #819: make a field editable (via checkbox) on index view
Author: JohnMerlino1
Created: 2011-12-06 23:26:57+00:00
State: open

Hey all,

There is no way to make a field editable on the index view. Right now you have to click the edit button and edit the record rather than just being able to tik a checkbox on list view and then click an update button on list view. In order to accomplish this, must I create my own view or can I modify the index method and do something like this:

index do
column "ID", :id
column "Enabled?", :enabled, :as => :checkbox
default_actions //custom action for update
end

In the above example, adding :as => :checkbox does nothing

thanks for response