Permalink
Browse files

correct example

wrong character encoding issue and one closing brace too much
  • Loading branch information...
1 parent 25bb271 commit 894c10c748f3a70c5538f663d9cf8ba417b5d7a2 luniki committed Nov 14, 2008
Showing with 8 additions and 8 deletions.
  1. +8 −8 README.rdoc
View
@@ -44,14 +44,14 @@ Enable the nested set functionality by declaring acts_as_nested_set on your mode
Run `rake rdoc` to generate the API docs and see CollectiveIdea::Acts::NestedSet::SingletonMethods for more info.
== View Helper
-
-The view helper is called #nested_set_options.
-
-Example usage:
-
- <%= f.select :parent_id, nested_set_options(Category, @category) {|i| "#{'' * i.level} #{i.name}" }) %>
-
- <%= select_tag 'parent_id', options_for_select(nested_set_options(Category) {|i| "#{'' * i.level} #{i.name}" } ) %>
+
+The view helper is called #nested_set_options.
+
+Example usage:
+
+ <%= f.select :parent_id, nested_set_options(Category, @category) {|i| "#{'-' * i.level} #{i.name}" } %>
+
+ <%= select_tag 'parent_id', options_for_select(nested_set_options(Category) {|i| "#{'-' * i.level} #{i.name}" } ) %>
See CollectiveIdea::Acts::NestedSet::Helper for more information about the helpers.

0 comments on commit 894c10c

Please sign in to comment.