How to create a new rails 3 application that uses jQuery as a js framework

  • How to create a new rails 3 application that uses jQuery as a js infrastructure?
  • How to switch an existing rails 3 application to use jQuery in rails mode?

Any guides please!

+4
source share
2 answers

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

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

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

+6
source

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

+3
source

Source: https://habr.com/ru/post/1347297/


All Articles