Why use gems for serving assets instead of the vendor file?

前端 未结 4 1111
余生分开走
余生分开走 2021-01-21 19:12

I am relatively new to Rails and I have a question about serving assets from a gem vs just loading the files into the asset pipeline.

As far as I can tell, they do virtu

4条回答
  •  生来不讨喜
    2021-01-21 20:05

    The gem includes the unobtrusive javascript for Rails as well as jQuery itself. It also allows you to user assert_select_jquery in tests.

提交回复
热议问题