diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 1ba2424..bd56b72 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -1,7 +1,9 @@ = link_to 'Add a track', new_track_path + %ul - @playlists.each do |p| %li= p.name + %ul - @tracks.each do |t| %li= t.name diff --git a/app/views/playlists/index.html.haml b/app/views/playlists/index.html.haml index 86cc038..d9abd60 100644 --- a/app/views/playlists/index.html.haml +++ b/app/views/playlists/index.html.haml @@ -1,4 +1,5 @@ = link_to 'Create playlist', new_playlist_path + %ul - @playlists.each do |p| %li diff --git a/app/views/tracks/show.html.haml b/app/views/tracks/show.html.haml index a8683c8..4f5ba18 100644 --- a/app/views/tracks/show.html.haml +++ b/app/views/tracks/show.html.haml @@ -1,4 +1,5 @@ %h1= @track.name + - if @track.sound? %audio{:src => sound_path(@track.sound), :controls => true, :autoplay => true} Your browser does not support the audio element diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml index 639f8ca..32879de 100644 --- a/app/views/users/new.html.haml +++ b/app/views/users/new.html.haml @@ -3,6 +3,7 @@ %ul - @user.errors.full_messages.each do |m| %li= m + %table %tbody %tr