I'm getting very confused trying to use attachment_fu, but i'm sure the
answer is simple to one of you...
I have a model called 'MusicService', which has a logo associated with
it. Logos have been set up to belong_to :music_service, and
music_service has_one :logo. Logo is also set up to be an attachment,
with has_attachment and the usual parameters. So far so good.
On the edit page for music_service is where i'm having problems - along
with all the other fields for music_service i have a file_field for the
logo file. Whereas the other fields write into a params field called
'name', 'address' etc, the file_field is writing into :uploaded_data.
When i submit the form, the 'update' controller action is called. How
do i deal with :uploaded_data in the controller?
I'm using attachment_fu elsewhere, where i have a form to edit a single
attachment object, and that works fine, it's just incorporating it into
a larger form for a different model that's got me snarled up.