I'm trying to take everything out of my Users table and send it to mail chimp for subscription.
I need to go from User.all to
[{:email => {:email => "[email protected]"},
:merge_vars => {:FNAME => "First name", :LNAME => "Last name"}
}]
I'm trying to do this with map but I'm struggling, any ideas of the cleanest way of doing this?