polymorphic singleton controller update form path

0 views
Skip to first unread message

Peter Berkenbosch

unread,
Aug 12, 2009, 5:05:35 PM8/12/09
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