Hi,

I got i.e. Ticket and TicketChange models and would like to create
TicketChange object whenever Ticket object is updated.

Currently I'm creating new TicketChange in Ticket#after_update
callback and simply serialize slightly modified ticket.changes hash.
Ticket can be updated using 2 ways - using in-place-editors (ajax) and
a form.

The problem is with updating through the form - I'd like users to be
able to comment the change and upload files for each change (I'm using
attachment_fu). The form is passing parameters to
TicketController#update action, the ticket is updated and
automagically ticket change is created as well. But how to pass the
comment and file to it?

Any tips how to solve it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to