是不是跟空格有关?
谁跑起来了截个图……
ActiveRecord 就是 update_attributes 啊,是用 ActiveRecord 吗?
数据库也使用 utf8。
排版
感受了一下,对面包屑没有留恋,我的鼠标上有后退键。
如果可以换组件,Postgresql 有 HStore 类型,Elasticsearch 添加索引的时候是无模式的,解决你的问题。
到垃圾邮件箱看看。
不知道用的是什么邮件发送服务,默认应该用的是系统的 sendmail 命令,看看日志(Linux 在 /var/log/mail)是否发送成功。
我的经验是用自己服务器上的邮件发送服务总是问题多多,还有可能被当作垃圾邮件,最好用专门的邮件服务比如 SES,Mailgun 等。
面包屑有点怪。
支持白色。
#7 楼 @darkbaby123 我觉得更好的方法是每个设备自己优化 px 的最佳显示比例,如果要开发者针对每个设备写 media query 那又是一个调试地狱了。
Depending on your situation. Ruby is the first choice in most cases for me, unless there is a better solutions or I have no choice, for example: Javscript in browser.
Consider this questions:
Foundation 没用过,之前用了另一个基于 rem 的框架 semantic-ui,rem 实用度并不如想象中高,我觉得 px 的显示效果应该交给设备自行优化。
Bootstrap 如果一点不改就会产生大量雷同设计,非常无趣,不过真正掌握了的人是可以做出很优秀的设计的,看这个列表 http://expo.getbootstrap.com/ 。
Bootstrap 适合快速搭建原型,之后再根据实际情况设计第二版,我下一个项目在用 Bootstrap。
<%= image_tag article_first_image_url(article) %>
module ArticlesHelper
def article_first_image_url(article)
...
end
end
#3 楼 @nagae_memooff 有很多方法可以将代码挪来挪去,推荐《重构 Ruby 版》这本书,但是这么一小段代码我怀疑是否有这么大优化价值,不想脱离实际环境讨论 模式 ,除非真的出现问题。
result = if condition
some_function object
else
another_function object
end
render_result result
应该提交 issues,github 会发邮件提醒给维护者。issues 也好管理进度。
User.where("robotic_catch > ?", current_user.robotic_catch).order(robotic_catch: :desc).count + 1