diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-10-08 05:50:59 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-10-08 05:50:59 +0000 |
commit | c2602354d10e3ceeb10a7f38dc4ff2f838badba2 (patch) | |
tree | c9b5aa593fd1b6921731bc024dad22cba7e17700 /actionpack/lib | |
parent | 93193613283f98de0c1d2bc9d806331edb641951 (diff) | |
download | rails-c2602354d10e3ceeb10a7f38dc4ff2f838badba2.tar.gz rails-c2602354d10e3ceeb10a7f38dc4ff2f838badba2.tar.bz2 rails-c2602354d10e3ceeb10a7f38dc4ff2f838badba2.zip |
form_for example for namespaced routes. Closes #9769 [sjgman9]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 3b4e05bc1d..f25f47af62 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -136,6 +136,12 @@ module ActionView # ... # <% end %> # + # And for namespaced routes, like admin_post_url: + # + # <% form_for([:admin, @post]) do |f| %> + # ... + # <% end %> + # # === Customized form builders # # You can also build forms using a customized FormBuilder class. Subclass FormBuilder and override or define some more helpers, |