How do you submit a rails 3 form without refreshing the page?
- by Anthony H
I've seen this done using ajax & php, but not rails 3.
I've tried using:
<%= form_for(:technician, :url => {:controller => 'pos', :action => 'create_ticket'}, :remote => true) do |f| %>
but the page still refreshes each time. I'm building a point of sale program, so I don't want the page to refresh.
How do I send the form data to the controller to process and store in the database without refreshing?