aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Miller <bensie@gmail.com>2010-08-25 14:42:11 -0700
committerJames Miller <bensie@gmail.com>2010-08-25 14:42:11 -0700
commit6e3c339ebea8cd9b0e30fa8f48d052205a5ed56d (patch)
tree54b853fdda792fc95cb96aebcefded69e8814253
parent9be59e49bfce68f8ac5a73c4322fe16a475d282e (diff)
downloadrails-6e3c339ebea8cd9b0e30fa8f48d052205a5ed56d.tar.gz
rails-6e3c339ebea8cd9b0e30fa8f48d052205a5ed56d.tar.bz2
rails-6e3c339ebea8cd9b0e30fa8f48d052205a5ed56d.zip
mysql2 is now the default, typos
-rw-r--r--railties/guides/source/getting_started.textile8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index c292daa915..4823876f19 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -235,7 +235,7 @@ If you choose to use MySQL instead of the shipped Sqlite3 database, your +config
<yaml>
development:
- adapter: mysql
+ adapter: mysql2
encoding: utf8
database: blog_development
pool: 5
@@ -1017,7 +1017,7 @@ Once we have made the new comment, we send the user back to the original post us
Now you can add posts and comments to your blog and have them show up in the right places.
-h3. Refactorization
+h3. Refactoring
Now that we have Posts and Comments working, if we take a look at the +app/views/posts/show.html.erb+ template, it's getting long and awkward. We can use partials to clean this up.
@@ -1141,7 +1141,7 @@ Then you make the +app/views/posts/show.html.erb+ look like the following:
<%= link_to 'Back to Posts', posts_path %> |
</erb>
-The second render just defines the partial template we want to render, <tt>comments/form</tt>, Rails is smart enough to spot the forward slash in that string and realise that you want to render the <tt>_form.html.erb</tt> file in the <tt>app/views/comments</tt> directory.
+The second render just defines the partial template we want to render, <tt>comments/form</tt>, Rails is smart enough to spot the forward slash in that string and realize that you want to render the <tt>_form.html.erb</tt> file in the <tt>app/views/comments</tt> directory.
The +@post+ object is available to any partials rendered in the view because we defined it as an instance variable.
@@ -1279,7 +1279,7 @@ Again, run the migration to create the database table:
$ rake db:migrate
</shell>
-Next, edit the +post.rb+ file to create the other side of the association, and to tell Rails (via the +accepts_nested_attributes+ macro) that you intend to edit tags via posts:
+Next, edit the +post.rb+ file to create the other side of the association, and to tell Rails (via the +accepts_nested_attributes_for+ macro) that you intend to edit tags via posts:
<ruby>
class Post < ActiveRecord::Base