diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-19 00:11:20 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-19 00:11:20 +0530 |
commit | 660cc4064490c2ae05521b2e14d3adead4bac520 (patch) | |
tree | 92928075da5b1923c983e4f61758c5d699014a0d | |
parent | fa92bb4bf5f24a7a2ab7f0e099890ecd206fa76f (diff) | |
parent | de2e28d255d02214b5169c23da5f2327982ea0aa (diff) | |
download | rails-660cc4064490c2ae05521b2e14d3adead4bac520.tar.gz rails-660cc4064490c2ae05521b2e14d3adead4bac520.tar.bz2 rails-660cc4064490c2ae05521b2e14d3adead4bac520.zip |
Merge branch 'master' of github.com:lifo/docrails
-rw-r--r-- | railties/guides/source/configuring.textile | 1 | ||||
-rw-r--r-- | railties/guides/source/form_helpers.textile | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index f70e95c0e9..7e715ff79f 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -152,6 +152,7 @@ Rails 3.1, by default, is set up to use the +sprockets+ gem to manage assets wit * +config.assets.compile+ is a boolean that can be used to turn on live Sprockets compilation in production. +* +config.assets.logger+ accepts a logger conforming to the interface of Log4r or the default Ruby +Logger+ class. Defaults to the same configured at +config.logger+. Setting +config.assets.logger+ to false will turn off served assets logging. h4. Configuring Generators diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile index 64eb2d8f36..1681629620 100644 --- a/railties/guides/source/form_helpers.textile +++ b/railties/guides/source/form_helpers.textile @@ -630,10 +630,10 @@ action for a Person model, +params[:model]+ would usually be a hash of all the a 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, +TIP: You may find you can try out examples in this section faster by using the console to directly invoke Racks' parameter parser. For example, <ruby> -ActionController::UrlEncodedPairParser.parse_query_parameters "name=fred&phone=0123456789" +Rack::Utils.parse_query "name=fred&phone=0123456789" # => {"name"=>"fred", "phone"=>"0123456789"} </ruby> |