jRails vs. Prototype

后端 未结 3 1418
日久生厌
日久生厌 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:32

    jRails is great if you are using rjs templates if you want to maintain a "consistent" codebase between generated and handwritten. However, I personally have seen jRails not know how to really decently handle ajax form generators.

    My biggest recommendation is to have jRails for "when you need it", and get more comfortable with writing JavaScript by hand. Prototype and jQuery are really two completely different schools of thought, and they aren't necessarily compatible. At first, I was a huge Prototype advocate, because a ton of my Ruby design knowledge was transferable, however I have learned to use jQuery in a much more robust way, using jQuery to empower more natural JavaScript.

提交回复
热议问题