-
Notifications
You must be signed in to change notification settings - Fork 508
Closed
Description
Hi,
Rails: 4.0.8
jquery-rails (3.1.1)
I followed, troubleshooting here:
http://www.alfajango.com/blog/rails-js-erb-remote-response-not-executing/
I have a simple test, which returns the JS (I See it in the console).
<div class="text-center">
<%= link_to 'Invoke UJS!',{:action => :demo, :controller => :public}, :class => "btn btn-default btn-lg", :remote => true %>
</div>
<div id="demo">
...
</div>
The console result is this, so Ajax call is executed nicely.
$("#demo").html("UJS Inserted!");
The JS executes, when pasting in the Firebug command panel, but not by itself.
What am I doing wrong? Does UJS actually work?
application.js
//= require jquery
//= require jquery_ujs
Metadata
Metadata
Assignees
Labels
No labels