Ruby on Rails: Submit a form as a JS based on a change in select box

后端 未结 3 760
悲&欢浪女
悲&欢浪女 2020-12-21 16:23

I have the following HTML generated by form_tag and select_tag in Rails:

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 16:31

    Try to repliace 'application.js' by 'application.js.coffee' and add #= require_self in the file.

提交回复
热议问题