Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -# This file is app/views/movies/index.html.haml
- %h2 All Movies
- %table#movies
- %thead
- %tr
- %th Movie Title
- %th Rating
- %th Release Date
- %th More Info
- %tbody
- - @movies.each do |movie|
- %tr
- %td= movie.title
- %td= movie.rating
- %td= movie.release_date
- %td= link_to "More about #{movie.title}", movie_path(movie)
Add Comment
Please, Sign In to add comment