On Jueves, 2 de Julio de 2009 22:44:41 amfeld20 escribió:
> Hi all,
>
> I'm having trouble when using nested links in my application.  I have
> a list view, where you can click on a link that will "show" a form for
> another object.  For example: I have a Contacts table, and a Companies
> table.  A Company has_many contacts and a Contact belongs_to a
> company.  In the contacts list view, you can click on the company name
> and it will display the information regarding that company.
>
> The problem is, when a "show" view is nested in a list view, and the
> nested object is not in the same table as the list, the "close"
> button, not the "x" button, returns to the incorrect page.  So if I
> clicked on Company A which is associated to Contact A, and then I
> click "Close" in the show view of Company A, it returns to the
> Companies table instead of the Contacts table.

I can't reproduce it. Neither with nested show views nor update views, both 
inline and in a new page. How are the urls you get?
They should be like
companies/company_id?_method=get&parent_controller=contacts
companies/company_id/edit?_method=get&parent_controller=contacts

>
> The same thing happens with nested shows/lists when trying to update,
> and then clicking "Cancel."  The "x" buttons always un-nest as you
> would expect them to, which is what I want the "Close" or "Cancel"
> buttons to do.
>
> Any ideas? This seems to be a problem with AS but my colleague has a
> similar setup with nesting, and his works fine.
>
> Thanks for reading,
> Alex
> 
-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to