Arrrrggghhh....
Why is it - that 20 seconds after posting a problem - you find at
least a partial solution?
My problem was passing the wrong information in the locations local
variable -
@locations = Location.find_all_by_organisation_id(params
[:organisation_id])
Since I was creating a new entry I needed a new one to work on in
memory
I think ... think it should be
@locations = @address.locations.build
That seems to be passing the correct information over - it is just
turning up in the wrong place now - it is coming into the
new_address_attributes, but of course that is not an attribute of an
address - it is an attribute of a location - so I think I need a
function to handle that in the same way.
This sort of thing makes PHP feel like a pair of old slippers - not
very trendy, but secretly you love them
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---