aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-01-15 14:30:23 -0200
committerVijay Dev <vijaydev.cse@gmail.com>2012-01-16 22:07:31 +0530
commit7b8e6d52a81c604be7ce071f3e5c40b2ec0d93ac (patch)
tree58fd3ce9ecb1673c815ea51108bb409ee964a78a /railties/guides/source
parent30782e443e6fd93bca18624433e31a16988eb3ed (diff)
downloadrails-7b8e6d52a81c604be7ce071f3e5c40b2ec0d93ac.tar.gz
rails-7b8e6d52a81c604be7ce071f3e5c40b2ec0d93ac.tar.bz2
rails-7b8e6d52a81c604be7ce071f3e5c40b2ec0d93ac.zip
Improve description of :allow_destroy option for nested attributes in getting started guide
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/getting_started.textile14
1 files changed, 7 insertions, 7 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index fb85a22b5e..c2ac5743e3 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -450,11 +450,11 @@ start a web server on your development machine. You can do this by running:
$ rails server
</shell>
-TIP: Compiling CoffeeScript to JavaScript requires a JavaScript runtime and
-the absence of a runtime will give you an +execjs+ error. Usually Mac OS X
+TIP: Compiling CoffeeScript to JavaScript requires a JavaScript runtime and
+the absence of a runtime will give you an +execjs+ error. Usually Mac OS X
and Windows come with a JavaScript runtime installed. +therubyracer+ gem is
added commented to Gemfile for new apps and you can uncomment if you need it.
-+therubyrhino+ is the recommended runtime for JRuby users and is added by default
++therubyrhino+ is the recommended runtime for JRuby users and is added by default
to Gemfile in apps generated under JRuby. You can investigate about all the
supported runtimes at "ExecJS":https://github.com/sstephenson/execjs#readme.
@@ -1698,10 +1698,10 @@ class Post < ActiveRecord::Base
end
</ruby>
-The +:allow_destroy+ option on the nested attribute declaration tells Rails to
-display a "remove" checkbox on the view that you'll build shortly. The
-+:reject_if+ option prevents saving new tags that do not have any attributes
-filled in.
+The +:allow_destroy+ option tells Rails to enable destroying tags through the
+nested attributes (you'll handle that by displaying a "remove" checkbox on the
+view that you'll build shortly). The +:reject_if+ option prevents saving new
+tags that do not have any attributes filled in.
We will modify +views/posts/_form.html.erb+ to render a partial to make a tag: