5

I have an existing Rails App with considerable js code written using Prototype, I would like to make jQuery the default app's javascript framework and then migrate the existing Prototype code the jQuery's equivalent.

What is your experience with this kind of issues or what strategies you suggest me in order to make this as painless as possible :P.

Any help would be appreciate, Thanks in Advance.

Rob W
  • 341,306
  • 83
  • 791
  • 678
jpemberthy
  • 7,473
  • 8
  • 44
  • 52
  • Dear god, write tests for the code first. It's less that you'll thank yourself for doing so later - more that you'll really really wish you had if you don't. Try QUnit if you'd like to test the js directly, and Selenium if you want to test using the browser itself. – Tim Snowhite Sep 29 '10 at 16:03
  • Here are some more places to research, as well. http://stackoverflow.com/questions/1512099/migrating-from-prototype-to-jquery http://stackoverflow.com/questions/134572/jquery-prototype-conflict – Tim Snowhite Sep 29 '10 at 16:19
  • Thanks, Actually we write test for controllers/models but nothing of `js` :'(, this a good point to start writing `js` tests :P. – jpemberthy Sep 29 '10 at 21:59

1 Answers1

0

Check out the below link -

http://randomactsofcoding.blogspot.com/2008/09/migrating-to-jquery.html

Alpesh
  • 5,307
  • 2
  • 19
  • 19