Steps to replace Prototype with Jquery
1. open Gem File
2. include gem 'jquery-rails'
3. bundle install in your rails app directory
4. bundle show jquery-rails
5. rails generate jquery:install [--ui]
If you get invalid spec error while doing bundle install, you could do one of the following
1. Update ruby gems to the latest version
a. gem update --system
or
1. Modify the erroneous gem spec reported
a. Open the file , look for the reported data format error and remove all the time section
example : 23-10-12 00:00.000000000z to 23-10-12
That's it !
1. open Gem File
2. include gem 'jquery-rails'
3. bundle install in your rails app directory
4. bundle show jquery-rails
5. rails generate jquery:install [--ui]
If you get invalid spec error while doing bundle install, you could do one of the following
1. Update ruby gems to the latest version
a. gem update --system
or
1. Modify the erroneous gem spec reported
a. Open the file , look for the reported data format error and remove all the time section
example : 23-10-12 00:00.000000000z to 23-10-12
That's it !
No comments:
Post a Comment