You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
396 B
19 lines
396 B
1 year ago
|
<h1>Reviews for <%= link_to @movie.title, @movie %></h1>
|
||
|
|
||
|
<ul class="reviews">
|
||
|
<% @reviews.each do |review| %>
|
||
|
<li>
|
||
|
<%= pluralize(review.stars, 'star') %>
|
||
|
<p>
|
||
|
<%= review.name %>
|
||
|
<span class="date">
|
||
|
<%= time_ago_in_words(review.created_at) %> ago
|
||
|
</span>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= review.comment %>
|
||
|
</p>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|