Params: hash

Hi.

I'm really struggling to get a simple contact from to work.

In my controller I have:

def index     @contact = Contact.new(params[:contact])     Contact::deliver_signup_thanks(@contact)   end

I want to pass @contact into 'deliver_signup_thanks' so it can reference each item via 'contact.name, contact.email' etc

Can anyone tell me how you do this?