面包屑有点怪。
支持白色。
#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
Rails 框架提取自 Basecamp https://basecamp.com/
#7 楼 @cassiuschen 你行你上啊
用这些工具对比 Assets Pipeline 有什么优势?
搬砖
表单把 url 字段 ajax 提交到服务端一个 fetch api,api 返回抓取内容,客户端更新表单。
楼主又来散布歪理了。
<%= render @articles %>
<%= paginate @articles %>
<%= render @articles %>
渲染文章列表
<%= paginate @articles %>
渲染分页导航
做的是两件事,不要组合在一起。
cache.fetch(key) do
# balabala
end