Changeset 4701
- Timestamp:
- 08/07/06 06:18:33 (2 years ago)
- Files:
-
- branches/stable/actionpack/CHANGELOG (modified) (1 diff)
- branches/stable/actionpack/lib/action_view/base.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/stable/actionpack/CHANGELOG
r4695 r4701 1 *1.12.3* (June 28th, 2006) 2 ======= 3 4 * Update documentation for erb trim syntax. #5651 [matt@mattmargolis.net] 5 1 6 * Short documentation to mention use of Mime::Type.register. #5710 [choonkeat@gmail.com] 2 7 3 * 1.12.3* (June 28th, 2006)8 * Pass :id => nil or :class => nil to error_messages_for to supress that html attribute. #3586 [olivier_ansaldi@yahoo.com, sebastien@goetzilla.info] 4 9 5 10 * Fix broken traverse_to_controller. We now: branches/stable/actionpack/lib/action_view/base.rb
r4189 r4701 12 12 # = ERb 13 13 # 14 # You trigger ERb by using embeddings such as <% %> and <%= %>. The difference is whether you want output or not. Consider the14 # You trigger ERb by using embeddings such as <% %>, <% -%>, and <%= %>. The <%= %> tag set is used when you want output. Consider the 15 15 # following loop for names: 16 16 # … … 20 20 # <% end %> 21 21 # 22 # The loop is setup in regular embedding tags (<% %>) and the name is written using the output embedding tag (<%= %>). Note that this22 # The loop is setup in regular embedding tags <% %> and the name is written using the output embedding tag <%= %>. Note that this 23 23 # is not just a usage suggestion. Regular output functions like print or puts won't work with ERb templates. So this would be wrong: 24 24 # 25 25 # Hi, Mr. <% puts "Frodo" %> 26 26 # 27 # (If you absolutely must write from within a function, you can use the TextHelper#concat) 27 # If you absolutely must write from within a function, you can use the TextHelper#concat 28 # 29 # <%- and -%> suppress leading and trailing whitespace, including the trailing newline, and can be used interchangeably with <% and %>. 28 30 # 29 31 # == Using sub templates