aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/form_helpers.textile
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_coder@freenet.de>2009-02-12 09:04:07 +0100
committerAndreas Scherer <andreas_coder@freenet.de>2009-02-12 09:04:07 +0100
commit115f352deb0803b427cd334fde549c39df7b4d32 (patch)
treeabe16e5622897db71af1b35293aaa968f915a30a /railties/guides/source/form_helpers.textile
parent1ce05c5a36a96dc370d66247e12900f9d07a5b4f (diff)
downloadrails-115f352deb0803b427cd334fde549c39df7b4d32.tar.gz
rails-115f352deb0803b427cd334fde549c39df7b4d32.tar.bz2
rails-115f352deb0803b427cd334fde549c39df7b4d32.zip
Use n-dashes for ranges/relations.
Diffstat (limited to 'railties/guides/source/form_helpers.textile')
-rw-r--r--railties/guides/source/form_helpers.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index de6e756312..0bae1396ce 100644
--- a/railties/guides/source/form_helpers.textile
+++ b/railties/guides/source/form_helpers.textile
@@ -627,7 +627,7 @@ h3. Understanding Parameter Naming Conventions
As you've seen in the previous sections, values from forms can be at the top level of the +params+ hash or nested in another hash. For example in a standard +create+
action for a Person model, +params[:model]+ would usually be a hash of all the attributes for the person to create. The +params+ hash can also contain arrays, arrays of hashes and so on.
-Fundamentally HTML forms don't know about any sort of structured data, all they generate is name-value pairs, where pairs are just plain strings. The arrays and hashes you see in your application are the result of some parameter naming conventions that Rails uses.
+Fundamentally HTML forms don't know about any sort of structured data, all they generate is name–value pairs, where pairs are just plain strings. The arrays and hashes you see in your application are the result of some parameter naming conventions that Rails uses.
TIP: You may find you can try out examples in this section faster by using the console to directly invoke Rails' parameter parser. For example <pre> ActionController::UrlEncodedPairParser.parse_query_parameters "name=fred&phone=0123456789" # => {"name"=>"fred", "phone"=>"0123456789"} </pre>