From 10dc4bf92c8e84d1fa48d28a08c3bbdd6f099b0f Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Sat, 24 Jan 2009 15:03:57 +0000 Subject: tidyup section on select boxes --- railties/doc/guides/source/form_helpers.txt | 49 +++++++++++++---------------- 1 file changed, 22 insertions(+), 27 deletions(-) (limited to 'railties/doc/guides') diff --git a/railties/doc/guides/source/form_helpers.txt b/railties/doc/guides/source/form_helpers.txt index e0155a1439..059a537dd1 100644 --- a/railties/doc/guides/source/form_helpers.txt +++ b/railties/doc/guides/source/form_helpers.txt @@ -286,7 +286,7 @@ The object yielded by `fields_for` is a form builder like the one yielded by `fo Relying on record identification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The Article model is directly available to users of our application, so -- following the best practices for developing with Rails -- you should declare it *a resource*. +The Article model is directly available to users of the application, so -- following the best practices for developing with Rails -- you should declare it *a resource*. When dealing with RESTful resources, calls to `form_for` can get significantly easier if you rely on *record identification*. In short, you can just pass the model instance and have Rails figure out model name and the rest: @@ -356,7 +356,7 @@ Here is what the markup might look like: ---------------------------------------------------------------------------- -- cgit v1.2.3