You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveAdmin.registerPostdo# Collection methods# published_items_admin_post_(path|url)# /admin/post/published_itemscollection_action:published_itemsdo@collection=Post.publishedcolumn(:created_at)column(:author_name)column(:published_at)column(:title){ |resource| resource.truncate(100)}end# Member methods# publish_admin_post_(path|url)# /admin/post/:id/publishmember_action:publishdo# your normal action codePost.find(params[:id]).publish!redirect_to(:back)end# Buttons on the top right bar, next to the "New #{model_name}" button.# show this button only at :published_items actionaction_item:only=>:published_itemsdolink_to"button label",action_path(resource)endend