jRails vs. Prototype

后端 未结 3 1420
日久生厌
日久生厌 2021-02-08 10:11

I am not trying to make this a preference question, I am really wondering what people\'s experiences are with using jQuery and Rails or jRails for development. Most rails users

3条回答
  •  醉话见心
    2021-02-08 10:55

    In Rails it really all comes down to the helper methods. Are you using any prototype helper methods? If so then you must use jRails to switch to jQuery. But if not then it really does not matter. They are both great. I used prototype a lot before and it is great. But I prefer the selector way of doing things with jQuery so I have switched. Another good reason to not use the helper methods is unobtrusive javascript. The rails helper methods creates messy inline code.

提交回复
热议问题