I have a mailing list signup form which creates a new contact record upon submission. It needs to appear in multiple places throughout my app so I thought it would make a good fit for a merb part.
I know I can just post the form to the Contacts#create action, but I want to always redirect back to the page you started on & that action currently redirects you back to the Contacts#index method for the admin backend. I would also want to set a custom notice I'm curious if it is possible to have the mailing list signup form post to a ContactFormPart#create action, or if it would be preferable to use the standard Contacts#create action along with a hidden field for the notice message & redirect_back_or_default. Or maybe some other method entirely? Appreciate any thoughts. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
