aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorMislav Marohnić <mislav.marohnic@gmail.com>2008-09-09 04:15:00 +0200
committerMislav Marohnić <mislav.marohnic@gmail.com>2008-09-09 04:15:00 +0200
commita849d1d9261cc76d48472952ea5ed4854a857fb5 (patch)
tree943cbc963b6bb9afc457f172d8c21d5e9af52854 /railties
parente5305e9fcbf88cf5442c3f51a52ce7525f195b56 (diff)
downloadrails-a849d1d9261cc76d48472952ea5ed4854a857fb5.tar.gz
rails-a849d1d9261cc76d48472952ea5ed4854a857fb5.tar.bz2
rails-a849d1d9261cc76d48472952ea5ed4854a857fb5.zip
resolve a few things asciidoc complained about
Diffstat (limited to 'railties')
-rw-r--r--railties/doc/guides/forms/form_helpers.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/doc/guides/forms/form_helpers.txt b/railties/doc/guides/forms/form_helpers.txt
index b490c8bfb7..7b0aeb0ed9 100644
--- a/railties/doc/guides/forms/form_helpers.txt
+++ b/railties/doc/guides/forms/form_helpers.txt
@@ -65,7 +65,7 @@ To create that, we will use `form_tag`, `label_tag`, `text_field_tag` and `submi
<% end %>
----------------------------------------------------------------------------
- [TIP]
+[TIP]
============================================================================
`search_path` can be a named route specified in "routes.rb":
@@ -198,11 +198,11 @@ Forms that deal with model attributes
When we're dealing with an actual model, we will use a different set of form helpers and have Rails take care of some details in the background. In the following examples we will handle an Article model. First, let us have the controller create one:
.articles_controller.rb
-------------------------
+----------------------------------------------------------------------------
def new
@article = Article.new
end
-------------------------
+----------------------------------------------------------------------------
Now we switch to the view. The first thing to remember is that we should use `form_for` helper instead of `form_tag`, and that we should pass the model name and object as arguments: