RailsCasts Pro episodes are now free!

Learn more or hide this

Arkadiusz Młynarczyk's Profile

GitHub User: yappco

Site: http://www.yappco.com

Comments by Arkadiusz Młynarczyk

Avatar

Is there any way to make simple_form work nice with ancestry?

I have alerts which have many categories, and categories are nested with ancestry.

Currently I'm using:

<%= f.association :category, :collection => Category.sort_by_ancestry(@organization.categories), :as => :check_boxes %>

But I would like to have categories nested visually.