Re: using import CSV with params

Thorsten Müller
Wed, 03 Dec 2008 15:29:20 -0000

if I get this right, in this line:
Mailing.create!(row.to_hash)
you want to add the :malinglist_id from params[:id]

that should work:
Mailing.create!(row.to_hash.merge!({:malinglist_id => params[:id]}))