Skip to content
Browse files

HW2 after first submission, adding id attributes to 'sort by' links

  • Loading branch information...
1 parent a1dfcee commit 455cdf76f68bb548c2cf6c4d75322651dab9d0d7 @chinpira committed Aug 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/movies/index.html.haml
View
4 app/views/movies/index.html.haml
@@ -4,9 +4,9 @@
%table#movies
%thead
%tr
- %th#title_header{:class => (params[:sort] == "sortByTitle" ? 'hilite' : nil)}= link_to "Movie Title", movies_path(:sort => "sortByTitle")
+ %th{:class => (params[:sort] == "sortByTitle" ? 'hilite' : nil)}= link_to "Movie Title", movies_path(:sort => "sortByTitle"), :id => "title_header"
%th Rating
- %th#release_date_header{:class => (params[:sort] == "sortByDate" ? 'hilite' : nil)}= link_to "Release Date", movies_path(:sort => "sortByDate")
+ %th{:class => (params[:sort] == "sortByDate" ? 'hilite' : nil)}= link_to "Release Date", movies_path(:sort => "sortByDate"), :id => "release_date_header"
%th More Info
%tbody
- @movies.each do |movie|

0 comments on commit 455cdf7

Please sign in to comment.
Something went wrong with that request. Please try again.