I'm new to Ruby on Rails and I'm building a simple crm. I'm trying to convert an @lead to an @customer after they become an actual customer. In the lead show page I'd like to have a button that says convert to customer, but I'm unsure how to do this in the controller and model.
What should I do?
Thanks for the help.
@lead.to_customerreturns a Customer instance you can save.