Решено.Aash Dhariya помогна да се реши това в mongoid групите на Google.
Промених reviews_controller.rb :
class ReviewsController < ApplicationController
def index
@product = Product.find(params[:product_id])
@reviews = @product.reviews
end
end
и app/views/reviews/index.html.erb :
<h1>Reviews</h1>
<% @product = Product.find(params[:product_id]) %>
<table>
<tr>
<th>Content</th>
</tr>
<% @reviews.each do |review| %>
<tr>
<td><%= review.content %></td>
</tr>
<% end %>
</table>
<br />
Сега показва рецензиите на отделна страница! :)