Monday, March 7, 2011

jquery with rails3

After creating a new Rails app -
rails new AppName
add this to your gemfile -
gem 'jquery-rails', '>= 0.2.6'
run
bundle install
run
rails generate jquery:install
make sure you choose to overwrite the rails.js

No comments:

Post a Comment