我正在尝试使用Vanity for rails。我的ab_test /rag_price_options.rb文件是:
ab_test "Rag price options" do
description "Different options for displaying the rag price"
alternatives "banner_194x117_rag.png", "ccp_logo_bk.png"
metrics :orders
end
我的metrics/order.rb是:
metric "Orders" do
description "Measures number of orders, subtotals, order number"
end
但是我正在尝试弄清楚如何有两张图片作为替代,它们需要放在一个链接中,字段如下:
<%= link_to image_tag("banner_194x117_rag.png", :alt=>'Free Rag with purchase over $99!', :width=>194, :height=>117, :style=>'display:block', :class=>'incentive'), "/blog/free-cheap-cycle-rag" %>
发布于 2012-05-22 22:54:36
我要做的就是:
<%= link_to image_tag(ab_test(:rag_price_options), :alt=>'Free Rag with purchase over $99!', :width=>194, :height=>117, :style=>'display:block', :class=>'incentive'), "/blog/free-cheap-cycle-rag" %>
https://stackoverflow.com/questions/10689836
复制相似问题