(Rails) What is “RJS”?

后端 未结 3 790
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 18:42

I\'ve seen \"RJS\" and \"RJS templates\" mentioned in passing in blog posts and tutorials. I did a search, but I\'m still unsure about it. Is it a technology specific to Rai

3条回答
  •  清歌不尽
    2020-12-13 18:55

    RJS was a "ruby-to-js" template system, RJS is not widely used anymore in the Rails ecosystem. SJR (Server-generated JavaScript Responses) is now prefered.

    This DHH's post helped me a lot to understand : https://signalvnoise.com/posts/3697-server-generated-javascript-responses

提交回复
热议问题