nested_set icon indicating copy to clipboard operation
nested_set copied to clipboard

Rdoc typos

Open clayheaton opened this issue 13 years ago • 5 comments

The nested_set rdoc text for sorted_nested_set_options(class_or_item, sort_proc, mover = nil, level = 0) has several typos. The "Usage" section reads:

<%= f.select :parent_id, sorted_nested_set_options(Category, lambda(&:name)) {|i, level| "#{'–' * level} #{i.name}" }) %>
OR
sort_method = lambda{|x| x.name.mb_chars.downcase }
<%= f.select :parent_id, nested_set_options(Category, sort_method) {|i, level| "#{'–' * level} #{i.name}" }) %>

Both code examples contain an extra closing parenthesis. The second example also should use the function sorted_nested_set_options() instead of nested_set_options().

clayheaton avatar Aug 10 '11 13:08 clayheaton

At the beginning of the same section, it also reads: +class_or_item+ - Class name or top level times It should read "items," not "times"

clayheaton avatar Aug 10 '11 13:08 clayheaton

Could you provide a pull request?

skyeagle avatar Aug 10 '11 14:08 skyeagle

Sorry - I'm pretty new to this and I've never done that and don't know how...

clayheaton avatar Aug 11 '11 12:08 clayheaton

Ok, never mind. I will correct it later.

skyeagle avatar Aug 11 '11 13:08 skyeagle

Commit 94446216d8ced6c3f75feb7100b90060407d44d3 resolved this -- can be closed.

pripple avatar Apr 24 '12 14:04 pripple