Skip to content
Browse files

improve helpers documentation

  • Loading branch information...
1 parent 4ff6a8c commit ca0636444b7071985b256987409649561f5eb4f4 @rkh rkh committed Jan 2, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 README.rdoc
View
14 README.rdoc
@@ -679,21 +679,19 @@ route handlers and templates:
bar(params[:name])
end
-Helper methods can be separately defined in a module:
+Alternatively, helper methods can be separately defined in a module:
module FooUtils
- def bar(name)
- "#{name}bar"
- end
+ def foo(name) "#{name}foo" end
end
- module MooUtils
- # ...
+ module BarUtils
+ def bar(name) "#{name}bar" end
end
- helpers FooUtils, MooUtils
+ helpers FooUtils, BarUtils
-The effect is same as including a module.
+The effect is the same as including the modules in the application class.
=== Using Sessions

0 comments on commit ca06364

Please sign in to comment.
Something went wrong with that request. Please try again.