Update problem

Hello,
   I want to update a record in the table.here r the details.

I have to modify a malinglist that contains email addresses to add
another email in the list. But when i do
@mailinglist.update_attributes(params[:mailinglist])
my old email addresses in the list are deleted and only new one remains

how can i modify the list so that i can add instead of replacing the old
email addresses.
Thank you.

Ank Ag wrote:

Hello,
   I want to update a record in the table.here r the details.

I have to modify a malinglist that contains email addresses to add
another email in the list. But when i do
@mailinglist.update_attributes(params[:mailinglist])
my old email addresses in the list are deleted and only new one remains

how can i modify the list so that i can add instead of replacing the old
email addresses.
Thank you.

Maybe you can try:
@mailinglist.new(params[:mailinglist])
@mailinglist.save