Accessing rails routes in javascript

后端 未结 8 1692
星月不相逢
星月不相逢 2020-12-08 19:39

Can anyone explain how i can access the rails routes/names routes in javascript ?

The following are some of the things i tried http://github.com/jsierles/js_named_r

8条回答
  •  余生分开走
    2020-12-08 20:38

    I was researching this question for a while and didn't found any implementation compatible with Rails 3.

    So decided to write my own:

    https://github.com/railsware/js-routes

提交回复
热议问题