I am using RoR 3 to create a new website for myself. I have 3 models like so:
Ship model has many ShipClasses
Ship model has many ShipEntries
ShipEntry belongs to Ship
ShipEntry belongs to ShipClass
When I am creating the Ship I generated nested forms for ShipClasses and ShipEntries. The problem I have is when creating a ShipEntry it should have one of the new ShipClasses assigned to it but at the moment when the Ship is created I have to go back in and edit the Ship and assign the ShipClasses to the ShipEntry due to the new ShipClasses not yet having been created in the DB. Is it possible at the creation of the ship to assign the newly created ShipClasses to the ShipEntry?
I hope someone gets what I mean, if you have any trouble understanding this let me know and i'll try to explain further.
Cheers
Eef
ShipEntrybelongs to only oneShipClass?