def add_to_cart_link(item)
      link_to(mongoid_cart.add_item_path(item: {type: item.class.to_s, id: item._id}), {class: "btn btn-default"}) do
        (tag :i, class: 'fa fa-cart-plus').concat('Add to cart')
      end
    end
def add_to_cart_link(item)
      link_to(mongoid_cart.add_item_path(item: {type: item.class.to_s, id: item._id}), {class: "btn btn-default"}) do
        (tag :i, class: 'fa fa-cart-plus').concat('Add to cart')
      end
    end
link_to mongoid_cart.add_item_path