show.html.haml 426 B

12345678910111213141516171819
  1. -# in app/views/movies/show.html.haml
  2. %h2 Details about #{@movie.title}
  3. %ul#details
  4. %li
  5. Rating:
  6. = @movie.rating
  7. %li
  8. Released on:
  9. = @movie.release_date.strftime("%B %d, %Y")
  10. %h3 Description:
  11. %p#description= @movie.description
  12. = link_to 'Edit', edit_movie_path(@movie)
  13. = button_to 'Delete', movie_path(@movie), :method => :delete, :confirm => 'Are you sure?'
  14. = link_to 'Back to movie list', movies_path