Can you post the output from the error? Then we can help
troubleshooting.
On Sep 2, 4:15 am, samson78 <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have two models, one belonging to another, Hotel and Owner (Hotel
> belongs to Owner) . I have declared that in the corresponding model
> files with has_many: and belongs_to:
>
> When I am viewing the Active Scaffold for the Owner and with
>
> config.nested.add_link("Label",[:hotels])
>
> I get the table fine, with the "Hotels" Link to the right, but when I
> click on it I get an error. I have tried many things, including
> different names for the foreign key (hotel, hotels, hotel_id) but I
> cannot make the nested view to work.
>
> Also, if I include the :hotels field in the config.columns collection
> the "create new" button does not work.
>
> Any ideas?
>
> Thanks,
>
> Kostas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---