Class: AlbumsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- AlbumsController
- Defined in:
- app/controllers/albums_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/controllers/albums_controller.rb', line 3 def index @albums = Album.published.paginate(:page => params[:page], :per_page => 12) # @albums.each do |a| # a.photos.each do |p| # p.image.recreate_versions! # end # end end |
#show ⇒ Object
13 14 15 |
# File 'app/controllers/albums_controller.rb', line 13 def show @album = Album.find(params[:id]) end |