Permalink
Browse files

Verbatim markup does not escape angle brackets.

If 'attribute' is to be marked as a variable part of a function name, use some
other form of visualization.
  • Loading branch information...
1 parent 4d4e78f commit bec07bc5d2229e8b1f9aa1f2750d71472c129f40 Andreas Scherer committed Feb 18, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/guides/source/2_2_release_notes.textile
View
8 railties/guides/source/2_2_release_notes.textile
@@ -164,9 +164,9 @@ h4. New Dynamic Finders
Two new sets of methods have been added to Active Record's dynamic finders family.
-h5. +find_last_by_<attribute>+
+h5. +find_last_by_<em>attribute</em>+
-The +find_last_by_<attribute>+ method is equivalent to +Model.last(:conditions => {:attribute => value})+
+The +find_last_by_<em>attribute</em>+ method is equivalent to +Model.last(:conditions => {:attribute => value})+
<ruby>
# Get the last user who signed up from London
@@ -175,9 +175,9 @@ User.find_last_by_city('London')
* Lead Contributor: "Emilio Tagua":http://www.workingwithrails.com/person/9147-emilio-tagua
-h5. +find_by_<attribute>!+
+h5. +find_by_<em>attribute</em>!+
-The new bang! version of +find_by_<attribute>!+ is equivalent to +Model.first(:conditions => {:attribute => value}) || raise ActiveRecord::RecordNotFound+ Instead of returning +nil+ if it can't find a matching record, this method will raise an exception if it cannot find a match.
+The new bang! version of +find_by_<em>attribute</em>!+ is equivalent to +Model.first(:conditions => {:attribute => value}) || raise ActiveRecord::RecordNotFound+ Instead of returning +nil+ if it can't find a matching record, this method will raise an exception if it cannot find a match.
<ruby>
# Raise ActiveRecord::RecordNotFound exception if 'Moby' hasn't signed up yet!

0 comments on commit bec07bc

Please sign in to comment.