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.
Written by Sandeep Kumar
Related protips
1 Response
what is about default hooks for html5 data attributes to handle AJAX behavior? it ships with jquery-rails already
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#