aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorlogylaps <logylaps@gmail.com>2010-05-04 02:17:36 -0700
committerXavier Noria <fxn@hashref.com>2010-05-04 19:31:32 +0200
commitd38b4771f1bf6b7c16f47ec395865e074b64606b (patch)
treec624349f4526f59ebf7b6a0733d0e59c6637f23b /railties/guides
parentc8d03fbe9ba461a0b635dcb85759cc4a2261ba95 (diff)
downloadrails-d38b4771f1bf6b7c16f47ec395865e074b64606b.tar.gz
rails-d38b4771f1bf6b7c16f47ec395865e074b64606b.tar.bz2
rails-d38b4771f1bf6b7c16f47ec395865e074b64606b.zip
typo 'main.cs' -> 'main.css', and textile typo 'h6(:has_many-group)' -> 'h6(#has_many-group)', and typo. missing 'if'
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/active_record_querying.textile2
-rw-r--r--railties/guides/source/association_basics.textile2
-rw-r--r--railties/guides/source/layouts_and_rendering.textile2
3 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile
index 1cfec1cf77..e18dbc9c42 100644
--- a/railties/guides/source/active_record_querying.textile
+++ b/railties/guides/source/active_record_querying.textile
@@ -802,7 +802,7 @@ will either assign an existing client object with the name "Ryan" to the client
h3. Finding by SQL
-If you'd like to use your own SQL to find records in a table you can use +find_by_sql+. The +find_by_sql+ method will return an array of objects even the underlying query returns just a single record. For example you could run this query:
+If you'd like to use your own SQL to find records in a table you can use +find_by_sql+. The +find_by_sql+ method will return an array of objects even if the underlying query returns just a single record. For example you could run this query:
<ruby>
Client.find_by_sql("SELECT * FROM clients
diff --git a/railties/guides/source/association_basics.textile b/railties/guides/source/association_basics.textile
index f13f6db6ee..335d17579d 100644
--- a/railties/guides/source/association_basics.textile
+++ b/railties/guides/source/association_basics.textile
@@ -1262,7 +1262,7 @@ end
TIP: In any case, Rails will not create foreign key columns for you. You need to explicitly define them as part of your migrations.
-h6(:has_many-group). +:group+
+h6(#has_many-group). +:group+
The +:group+ option supplies an attribute name to group the result set by, using a +GROUP BY+ clause in the finder SQL.
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile
index 92b36ab3e4..f6b6a1a7cc 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -747,7 +747,7 @@ You can even use dynamic paths such as +cache/#{current_site}/main/display+.
h5. Linking to CSS Files with +stylesheet_link_tag+
-The +stylesheet_link_tag+ helper returns an HTML +&lt;link&gt;+ tag for each source provided. Rails looks in +public/stylesheets+ for these files by default, but you can specify a full path relative to the document root, or a URL, if you prefer. For example, to include +public/stylesheets/main.cs+:
+The +stylesheet_link_tag+ helper returns an HTML +&lt;link&gt;+ tag for each source provided. Rails looks in +public/stylesheets+ for these files by default, but you can specify a full path relative to the document root, or a URL, if you prefer. For example, to include +public/stylesheets/main.css+:
<erb>
<%= stylesheet_link_tag "main" %>