How do you submit a rails 3 form without refreshing the page?
Posted
by
Anthony H
on Stack Overflow
See other posts from Stack Overflow
or by Anthony H
Published on 2011-01-09T12:46:39Z
Indexed on
2011/01/09
12:53 UTC
Read the original article
Hit count: 185
AJAX
|ruby-on-rails3
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?
© Stack Overflow or respective owner