Class: SongsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- SongsController
- Defined in:
- app/controllers/songs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/songs_controller.rb', line 4 def index @songs = Song.published end |
#show ⇒ Object
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 |