aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2013-06-13 12:54:43 -0700
committerVijay Dev <vijaydev.cse@gmail.com>2013-06-13 12:54:43 -0700
commitcf5bcf7fa85e106640152f717b3af6f9eeba2463 (patch)
tree34a0fce7e95021bc20d3a6d90d2676b08d586558 /guides
parent41a398f859cc46430cb3b655d44c0cb3b41e42ae (diff)
parentd1c0d9b15533f0d990fb4095dc3d5598db1d832e (diff)
downloadrails-cf5bcf7fa85e106640152f717b3af6f9eeba2463.tar.gz
rails-cf5bcf7fa85e106640152f717b3af6f9eeba2463.tar.bz2
rails-cf5bcf7fa85e106640152f717b3af6f9eeba2463.zip
Merge pull request #142 from codyrobbins/master
Added a warning about #1769 to the routing guide
Diffstat (limited to 'guides')
-rw-r--r--guides/source/routing.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 076b9dd176..c6d3b2a58a 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -171,6 +171,12 @@ A singular resourceful route generates these helpers:
As with plural resources, the same helpers ending in `_url` will also include the host, port and path prefix.
+WARNING: A [long-standing bug](https://github.com/rails/rails/issues/1769) prevents `form_for` from working automatically with singular resources. As a workaround, specify the URL for the form directly, like so:
+
+```
+form_for @geocoder, url: geocoder_path do |f|
+```
+
### Controller Namespaces and Routing
You may wish to organize groups of controllers under a namespace. Most commonly, you might group a number of administrative controllers under an `Admin::` namespace. You would place these controllers under the `app/controllers/admin` directory, and you can group them together in your router: