RailsCasts Pro episodes are now free!

Learn more or hide this

Jordan Humphreys's Profile

GitHub User: mrsweaters

Site: jordanhumphreys.com

Comments by Jordan Humphreys

Avatar

Thanks for reporting. If a value of data-tooltip is set then this value is used to identify the tooltip itself. Since in this case both are data-tooltip="true" when generated, both point to the same tooltip.

Try this:

    <div class="row collapse">
      <div class="small-3 columns">
        <%= f.label :name, class: "right inline", title: "Name of product", data: {tooltip: "name" } %>
      </div>
      <div class="small-9 columns">
        <%= f.text_field :name %>
      </div>
    </div>


    <div class="row collapse">
      <div class="small-3 columns">
        <%= f.label :price, class: "right inline", title: "Price in USD", data: {tooltip: "price" } %>
      </div>
      <div class="small-9 columns">
        <%= f.text_field :price %>
      </div>
    </div>