<%= f.select :parent_id, nested_set_options(Category, @category) {|i| "#{'-' * 
i.level} #{i.name}" } %>
I tried this for the new action where `@category = Category.new` but my 
rendered select list is empty

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/810ca1cd-c9b2-414d-8e14-91357c6c0c7a%40googlegroups.com.

Reply via email to