Displaying 1 result from an estimated 1 matches for "images_provid".
2010 Sep 01
0
Error on update_attributes with HABTM relationship
...ck on a provider name that comes up in
the search, it adds a line like this to the form markup:
<input type="hidden" name="image[provider_ids][]" value="3">
On hitting the submit button, Rails saves the Image model as expected,
and creates all the entries in my images_providers table. (consisting
of just image_id and provider_id)
The problem comes in when editing an image. On the edit page, I have
the same functionality as above available, but the existing provider
entries are already displayed on the page. So I''ll have in the form:
<input type="hidd...