<%= render 'follow_icon', product: product %>
<%= render partial: 'follow_icon', locals: { product: product } %>
NOTICE: This library has been renamed and retired in September 2013 (read the explanation). It is not considered compatible with Elasticsearch 1.x.
Have a look at the http://github.com/elasticsearch/elasticsearch-rails suite of gems, which contain similar set of features for ActiveModel/Record and Rails integration as Tire.
建议:
现在是最好的订阅时机,7 美元看几百篇文章。
css 放 javascripts 文件夹确实有问题,浏览器开调试,Network 栏,那个 css 文件应该无法找到。
#1 楼 @blacktulip 3.0.5 还没有 assets pipeline。
#8 楼 @willmouse 还真是,不写第二个参数就混一起了,已修正。
a.all? { |key, _| params[:a][key].present? }
:call ReloadAllSnippets()
sudo apt-get install mongodb
奥,还有个 page:load
,考虑到 restore 的问题,page:load
才是对应 $().ready
再扰乱一下楼主,其实我现在用 page:change
很少,换成这样写:
$(document).on 'click', 'body', ->
console.log('hit')
ruby 2.1.1 rails 4.1.1.rc1
看《重构》