Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Rdoc typos #33

@clayheaton

Description

@clayheaton

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions