SHARE
TWEET

index.html.haml

saasbook Jan 10th, 2012 1,552 Never
  1. -#  This file is app/views/movies/index.html.haml
  2. %h2 All Movies
  3.  
  4. %table#movies
  5.   %thead
  6.     %tr
  7.       %th Movie Title
  8.       %th Rating
  9.       %th Release Date
  10.       %th More Info
  11.   %tbody
  12.     - @movies.each do |movie|
  13.       %tr
  14.         %td= movie.title
  15.         %td= movie.rating
  16.         %td= movie.release_date
  17.         %td= link_to "More about #{movie.title}", movie_path(movie)
RAW Paste Data
Top