0

レールにバニティを使用しようとしています。私の 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 に答える