On 6 December 2012 12:11, Jean-David <[email protected]> wrote: > ... > Thanks for the advise. Logging led me to a solution, but I don't > really understand what's going on under the hood. > > Here's my solution: > > "upload" now returns this: > return "#{uploaded_io.original_filename}" > > In "create", I set: > @lead.illustration = upload > > In "update", this wont work. I need to set: > params[:lead][:illustration] = upload > and the update goes fine. > > After finding this out I tried to set > params[:lead][:illustration] = upload > instead of > @lead.illustration = upload > in "create", and that wont work.
Can you post your create and update methods as you now have them so I can see what you are doing. Colin -- 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 https://groups.google.com/groups/opt_out.

