最好后面不要有广告... 穿起来怪尴尬的..
#8 楼 @lithium4010 exactly!
#1 楼 @mizuhashi 原来如此
2 年了还是这么坑..
你们用过ActionController::HttpAuthentication::Token
这个么,觉得如何?
类方法的实质就是一个类的单件方法
主要是写 token 登录找不到好的参考项目,移动端就不怎么想使用 devise 了
swagger 是真不错
这个帖子实在是太尴尬了..
安卓 4.22 果然用不了呀...
这么多妹子...
用手机浏览器好像登录也失败..
html_safe
,用这个也不合适么?
代码块也是对象么?
#1 楼 @small_fish__ 我用的是 chrome
改成asset-url
却可行..
我发现改成下面这个就对了:
background: url(/assets/dandelion.jpg);
background-position: center;
可是 sass-rails 里面有:
As a convenience, for each of the following asset classes there are
corresponding `-path` and `-url` helpers:
image, font, video, audio, javascript, stylesheet.
* `image-path("rails.png")` returns `"/assets/rails.png"`
* `image-url("rails.png")` returns `url(/assets/rails.png)`
这里的 image-url 和我这里的 image-url 转变的不太一样,我这里却转出了/images/dandelion.jpg
这样子的地址
这是为什么呢?
发帖后才发现帖子里的这个头像更换了,但是右上角的头像还是原来的那个。