Skip to content Skip to sidebar Skip to footer

Rails Js.erb Not Working

I'm submitting a form, with somewhat complex nesting to a Rails controller. The Javascript is tied to the submit button as below: $('#new_search').submit(function() { va

Solution 1:

OK, fixed it by going back to the old style :remote => true in the form definition in the view.

I thought the world had moved away from this to unobtrusive JS bouncing off the submit event. Obviously I was wrong but this solution might help someone so I'm leaving it here


Post a Comment for "Rails Js.erb Not Working"