0

我正在尝试将 Vanity 用于导轨。我的 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

但我试图弄清楚如何将 2 张图像作为需要进入链接以显示如下内容的替代方案:

   <%= 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" %> 
4

1 回答 1

0

我所要做的就是:

    <%= 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" %>
于 2012-05-22T14:54:35.647 回答