Hi guys, I have a problem with form_for helper method.
Scenario:
My models
----------------
Org::Organization and Org::Member
routes.rb
--------------
namespace :org do
resources :organizations do
resources :members
end
end
so, Rails creates helper methods like this:
org_organization_members_path,
when i tried use the form_for:
form_for [@organization, @member ] do
...
end
it occurs the error:
ActionView::Template::Error:
undefined method `org_organization_org_members_path' for
#<#<Class:0x007ff90b3645c8>:0x007ff90b3c11b0>
Why rails is defining the helper method like
org_organization_members_path
and form_for is expecting org_organization_org_members_path ?
I'm actually using rails 3.2.1.
Thanks,
Everton Cardoso
on 2012-04-19 06:21
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.