Add home page with playlists list and link to add a track

This commit is contained in:
Thibault Jouan
2011-07-27 19:34:59 +00:00
parent d452dde3ea
commit b39bc2d6da
9 changed files with 52 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
class HomeController < ApplicationController
def index
@playlists = Playlist.all
end
end

View File

@@ -0,0 +1,4 @@
= link_to 'Add a track', new_track_path
%ul
- @playlists.each do |p|
%li= p.name

View File

@@ -1,5 +1,4 @@
= link_to 'Create playlist', new_playlist_path
= link_to 'Add a track', new_track_path
%ul
- @playlists.each do |p|
%li