Skip to content
This repository
Browse code

improve helpers documentation

  • Loading branch information...
commit 921afccdec1368b35c241a20128058d4ecda0bf5 1 parent b235882
Konstantin Haase authored January 02, 2012

Showing 1 changed file with 6 additions and 8 deletions. Show diff stats Hide diff stats

  1. 14  README.rdoc
14  README.rdoc
Source Rendered
@@ -801,21 +801,19 @@ route handlers and templates:
801 801
     bar(params[:name])
802 802
   end
803 803
 
804  
-Helper methods can be separately defined in a module:
  804
+Alternatively, helper methods can be separately defined in a module:
805 805
 
806 806
   module FooUtils
807  
-    def bar(name)
808  
-      "#{name}bar"
809  
-    end
  807
+    def foo(name) "#{name}foo" end
810 808
   end
811 809
 
812  
-  module MooUtils
813  
-    # ...
  810
+  module BarUtils
  811
+    def bar(name) "#{name}bar" end
814 812
   end
815 813
 
816  
-  helpers FooUtils, MooUtils
  814
+  helpers FooUtils, BarUtils
817 815
 
818  
-The effect is same as including a module.
  816
+The effect is the same as including the modules in the application class.
819 817
 
820 818
 === Using Sessions
821 819
 

0 notes on commit 921afcc

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