aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2012-09-07 00:09:56 -0400
committerPrem Sichanugrist <s@sikac.hu>2012-09-17 15:55:17 -0400
commit5e2866cc3445646d8df049413aa5fbf03fa605ef (patch)
treecdb9f799120a0b7516309affa9248e6f0980fe58 /guides/source
parent7a0dad25f3be77211160560dc76a8f37963051d7 (diff)
downloadrails-5e2866cc3445646d8df049413aa5fbf03fa605ef.tar.gz
rails-5e2866cc3445646d8df049413aa5fbf03fa605ef.tar.bz2
rails-5e2866cc3445646d8df049413aa5fbf03fa605ef.zip
No more Textile guide generation support
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/form_helpers.md2
-rw-r--r--guides/source/ruby_on_rails_guides_guidelines.md4
2 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md
index e8e8a97791..ec1f1d4df1 100644
--- a/guides/source/form_helpers.md
+++ b/guides/source/form_helpers.md
@@ -201,7 +201,7 @@ Dealing with Model Objects
### Model Object Helpers
-A particularly common task for a form is editing or creating a model object. While the `*_tag` helpers can certainly be used for this task they are somewhat verbose as for each tag you would have to ensure the correct parameter name is used and set the default value of the input appropriately. Rails provides helpers tailored to this task. These helpers lack the <notextile>_tag</notextile> suffix, for example `text_field`, `text_area`.
+A particularly common task for a form is editing or creating a model object. While the `*_tag` helpers can certainly be used for this task they are somewhat verbose as for each tag you would have to ensure the correct parameter name is used and set the default value of the input appropriately. Rails provides helpers tailored to this task. These helpers lack the _tag suffix, for example `text_field`, `text_area`.
For these helpers the first argument is the name of an instance variable and the second is the name of a method (usually an attribute) to call on that object. Rails will set the value of the input control to the return value of that method for the object and set an appropriate input name. If your controller has defined `@person` and that person's name is Henry then a form containing:
diff --git a/guides/source/ruby_on_rails_guides_guidelines.md b/guides/source/ruby_on_rails_guides_guidelines.md
index 0b070bf500..e589a3d093 100644
--- a/guides/source/ruby_on_rails_guides_guidelines.md
+++ b/guides/source/ruby_on_rails_guides_guidelines.md
@@ -74,10 +74,10 @@ bundle exec rake guides:generate:html
(You may need to run `bundle install` first to install the required gems.)
-To process `my_guide.textile` and nothing else use the `ONLY` environment variable:
+To process `my_guide.md` and nothing else use the `ONLY` environment variable:
```
-touch my_guide.textile
+touch my_guide.md
bundle exec rake guides:generate ONLY=my_guide
```