[Rails] optional form :remote ?

2011-03-17 Thread Tony Primerano
Is it possible to have a form submit normally if button X is pushed and do an AJAX call if button Y is pushed? My use case: I'm letting users do some customizations and I want a preview button and a save button. Hitting preview submits the current form values as an AJAX call and the returned

Re: [Rails] optional form :remote ?

2011-03-17 Thread Philip Hallstrom
Is it possible to have a form submit normally if button X is pushed and do an AJAX call if button Y is pushed? My use case: I'm letting users do some customizations and I want a preview button and a save button. Hitting preview submits the current form values as an AJAX call and the