Want more features on Pastebin? Sign Up, it's FREE!

index.html.haml

By: saasbook on Jan 10th, 2012  |  syntax: Ruby  |  size: 0.37 KB  |  views: 1,544  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)
clone this paste RAW Paste Data