0

I want to make use of jQuery in Rails 2. What is the gem needed for it?

I came to know that 'jquery-rails' can be used for Rails 3 only.

prusswan
  • 6,853
  • 4
  • 40
  • 61
KiranD
  • 433
  • 2
  • 7
  • 20

2 Answers2

1

The gem needed to include jQuery in rails is gem "jquery-rails"

For previous versions of Rails, follow the 'Manual installation' on making use of JQuery in Rails 2 here - https://github.com/rails/jquery-ujs

dsgriffin
  • 66,495
  • 17
  • 137
  • 137
0

If you want to use jquery inside a rails 2.x project, instead of prototype, you will have to use jRails.

nathanvda
  • 49,707
  • 13
  • 117
  • 139