Skip to content Skip to sidebar Skip to footer

Javascript Form Submition

I'm looking to refresh the the table 'dashboard_categories' when I click submit without the whole page refreshing, this is what I've done so far: http://pastie.org/7822560 I'm now

Solution 1:

Include unobtrusive javascript driver in your manifest app/assets/javascript/application.js:

//= require jquery_ujs

And then mark the form to be submitted by AJAX:

<%= form_for(@category), remote: true do |f| %>

Post a Comment for "Javascript Form Submition"