aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Dieterle <MikDiet@gmail.com>2012-05-24 00:41:13 +0300
committerMikhail Dieterle <MikDiet@gmail.com>2012-05-24 00:41:13 +0300
commit03fa7085a958cfd07fe7088a6b83a79d6f0eb602 (patch)
tree1da8213703d145f7f522132dd6d1d94f328d531a
parent91305adef8e94c2bbc3b771747dc0fbb00e3a171 (diff)
downloadrails-03fa7085a958cfd07fe7088a6b83a79d6f0eb602.tar.gz
rails-03fa7085a958cfd07fe7088a6b83a79d6f0eb602.tar.bz2
rails-03fa7085a958cfd07fe7088a6b83a79d6f0eb602.zip
typos
-rw-r--r--guides/source/getting_started.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile
index c129aeb2e1..4d099860fa 100644
--- a/guides/source/getting_started.textile
+++ b/guides/source/getting_started.textile
@@ -500,7 +500,7 @@ database columns. In the first line we do just that (remember that
+params[:post]+ contains the attributes we're interested in). Then,
+@post.save+ is responsible for saving the model in the database.
Finally, we redirect the user to the +show+ action,
-wich we'll define later.
+which we'll define later.
TIP: As we'll see later, +@post.save+ returns a boolean indicating
wherever the model was saved or not.
@@ -610,7 +610,7 @@ The +link_to+ method is one of Rails' built-in view helpers. It creates a
hyperlink based on text to display and where to go - in this case, to the path
for posts.
-Let's add links to the other views as well, starting with adding this "New Post" link to +app/views/posts/index.html.erb+, placing it above the +<table>+ tag:
+Let's add links to the other views as well, starting with adding this "New Post" link to +app/views/posts/index.html.erb+, placing it above the +&lt;table&gt;+ tag:
<erb>
<%= link_to 'New post', :action => :new %>
@@ -1129,7 +1129,7 @@ together.
Here we're using +link_to+ in a different way. We wrap the
+:action+ and +:id+ attributes in a hash so that we can pass those two keys in
first as one argument, and then the final two keys as another argument. The +:method+ and +:confirm+
-options are used as html5 attributes so that when the click is linked,
+options are used as html5 attributes so that when the link is clicked,
Rails will first show a confirm dialog to the user, and then submit the
link with method +delete+. This is done via the JavaScript file +jquery_ujs+
which is automatically included into your application's layout