Sort Activeadmin Index by Boolean

Asked

Viewed 30 times

1

In suggestion.Rb I have the following code:

 index  title: "Sugestões" do
    column "Título", :title
    column "Autor", :user
    column "Aprovado", :published
    actions
  end

The last column :Published is of the Boolean type. I wish to sort this index by Published: false.

Vlw!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.