Last Updated: February 25, 2016
·
1.104K
· sandeepleo11

jQuery instead of Prototype in Rails 3

Here i'm gonna explain you how to use jquery instead of prototype in rails 3.

i have done this without using any gem like "jquery-rails".

first step: download latest jquery from http://jquery.com/ website.
second step: place it in public/javascripts folder.
third step: edit the application.rb file which is in config folder
uncomment the line

config.action_view.javascript_expansions[:defaults] = %w(jquery rails)

thats it.

was this helpfull please let me know if you have queries.

please post comments and let me know some feedback.

1 Response
Add your response

what is about default hooks for html5 data attributes to handle AJAX behavior? it ships with jquery-rails already

over 1 year ago ·