diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-06 08:22:56 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-06 08:22:56 +0000 |
commit | 2789b5d2cefb4765e5bd2d14b10109cfe2d7f96b (patch) | |
tree | 4ecabf74653acb358d5bf9cf033695121d1502d8 /actionmailer/lib/action_mailer/helpers.rb | |
parent | 8dbaae6012c8aa71c811eb42e7a7ac32a36e2080 (diff) | |
download | rails-2789b5d2cefb4765e5bd2d14b10109cfe2d7f96b.tar.gz rails-2789b5d2cefb4765e5bd2d14b10109cfe2d7f96b.tar.bz2 rails-2789b5d2cefb4765e5bd2d14b10109cfe2d7f96b.zip |
Tuned documentation for release (AM)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |