Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a new rails 3 app that uses jQuery as a js framework [closed]

  1. How to create a new rails 3 app that uses jQuery as a js framework?
  2. How to switch an existing rails 3 app to use jQuery in the "rails" way?

Any guides, please!

like image 475
Alpha Sisyphus Avatar asked Jan 20 '23 01:01

Alpha Sisyphus


2 Answers

Add the gem to your Gemfile and follow instructions from here:

https://github.com/indirect/jquery-rails

FYI: jQuery will be the default js framework in Rails 3.1

like image 163
apneadiving Avatar answered Jan 22 '23 15:01

apneadiving


You can also create a new rails 3 app with http://railswizard.org/ (and include jquery as the default js framework) to speed up your setup process

like image 33
benoitr Avatar answered Jan 22 '23 15:01

benoitr