I am using the following:
send("#{done_event.class.name.tableize}_path", done_event.id)
An example is done_event is a specific instance of ContactEmail.
I would like this to represent the path contact_email_path(done_event.id) which would translate to something like contact_emails/1
However, the result I get is contact_emails.1
Not sure what to do...?
I also get this error when I just try to pass in the object:
http://localhost:3000/contact_calls.%23%3Ccontactcall:0x9fefb80%3E