From c2602354d10e3ceeb10a7f38dc4ff2f838badba2 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Mon, 8 Oct 2007 05:50:59 +0000 Subject: [PATCH] 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 --- actionpack/lib/action_view/helpers/form_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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,