Class: SongsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/songs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
# File 'app/controllers/songs_controller.rb', line 4

def index
  @songs = Song.published
end

#showObject



8
9
10
11
# File 'app/controllers/songs_controller.rb', line 8

def show
  @songs = Song.published # for body_content_right
  @song = Song.find(params[:id], :conditions => {:published => true})
end