Index - Rich Snippets Sample

Reviews

ERB code

<%= item_tag :div, scope: true, type: :review do %> <%= item_tag :span, 'Snipp', prop: :itemreviewd %> Reviewed by <%= item_tag :span, '@yulii', prop: :reviewer %> on <%= item_tag :time, 'April 1', prop: :dtreviewd, datetime: "2013-04-01" %>. <%= item_tag :span, 'Review summary...', prop: :summary %> <%= item_tag :span, 'Review description...', prop: :description %> Rating: <%= item_tag :span, '4.5', prop: :rating %> <% end %>

Output code

Snipp Reviewed by @yulii on . Review summary... Review description... Rating: 4.5