Groups
Sign in
Groups
resource_controller
Conversations
About
Send feedback
Help
polymorphic singleton controller update form path
0 views
Skip to first unread message
Peter Berkenbosch
unread,
Aug 12, 2009, 5:05:35 PM
8/12/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to resource_controller
Hello List,
I have an issue with a polymorphic singleton controller.
The form_for tag is like this:
form_for [parent_object,object] do |form|
But this is generating a wrong path.
<form action="/accounts/1/company.%23%3Ccompany:0x22228f4%3E"
This should be /accounts/1/company
How do I get het correct post url ?
The controller (CompaniesController )
resource_controller :singleton
belongs_to :account
Thanks...
With regards,
Peter Berkenbosch
Reply all
Reply to author
Forward
0 new messages