assets 编译之后就不会变了,放常量可以,放不了变量。
这颜色无法直视,看不清问题。
Turbolinks will evaluate any script tags in pages it visit, if those tags do not have a type or if the type is text/javascript. All other script tags will be ignored.
As a rule of thumb when switching to Turbolinks, move all of your javascript tags inside the head and then work backwards, only moving javascript code back to the body if absolutely necessary.
你的想法是可行的,官方推荐还是放到 head,我还没想清楚为什么。
#85 楼 @xiaoronglv 晕,要不要我重置一个随机密码发到你邮箱?帐号是多少?
学 Ruby 还有前途吗?我刚来就看到这个,感觉心好凉啊。
#2 楼 @linjunpop 是 one,只执行一次。
测试自己觉得容易错的地方和需要调试 2 次以上的地方
Rails 放 css 和 js 是在 app/assets 文件夹下的