diff options
Diffstat (limited to 'actionmailer/lib/action_mailer/helpers.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/helpers.rb | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/actionmailer/lib/action_mailer/helpers.rb b/actionmailer/lib/action_mailer/helpers.rb index c0e02edfb1..f482758386 100644 --- a/actionmailer/lib/action_mailer/helpers.rb +++ b/actionmailer/lib/action_mailer/helpers.rb @@ -24,28 +24,7 @@ module ActionMailer #:nodoc: end end - # The template helpers serves to relieve the templates from including the same inline code again and again. It's a - # set of standardized methods for working with forms (FormHelper), dates (DateHelper), texts (TextHelper), and - # Active Records (ActiveRecordHelper) that's available to all templates by default. - # - # It's also really easy to make your own helpers and it's much encouraged to keep the template files free - # from complicated logic. It's even encouraged to bundle common compositions of methods from other helpers - # (often the common helpers) as they're used by the specific application. - # - # module MyHelper - # def hello_world() "hello world" end - # end - # - # MyHelper can now be included in a controller, like this: - # - # class MyController < ActionController::Base - # helper :my_helper - # end - # - # ...and, same as above, used in any template rendered from MyController, like this: - # - # Let's hear what the helper has to say: <tt><%= hello_world %></tt> - module ClassMethods + module ClassMethods #:nodoc: # Makes all the (instance) methods in the helper module available to templates rendered through this controller. # See ActionView::Helpers (link:classes/ActionView/Helpers.html) for more about making your own helper modules # available to the templates. @@ -133,4 +112,4 @@ module ActionMailer #:nodoc: end end end -end +end
\ No newline at end of file |