This file is app view movies index html haml h1 All Movies table movie

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
-# This file is app/view/movies/index.html.haml
%h1 All Movies
%table#movies
%thead
%tr
%th= link_to "Movie Title", sortbytitle_movies_path
%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)
= link_to 'Add new movie', new_movie_path