Sha256: 9535fb5e72e2bab8f5903dfc36828289618b5f4f3adcc67bb70a2d1ed74b796a

Contents?: true

Size: 261 Bytes

Versions: 22

Compression:

Stored size: 261 Bytes

Contents

class PhotosController < ApplicationController
  
  def index
    #@albums = Album.published.paginate(:page => params[:page], :per_page => 12)
  end

  def show
    @album = Album.find(params[:album_id])
    @photo = @album.photos.find(params[:id])
  end
  
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
mix-rails-0.26.3 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.26.3 app/controllers/photos_controller.rb
mix-rails-0.26.2 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.26.2 app/controllers/photos_controller.rb
mix-rails-0.26.1 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.26.1 app/controllers/photos_controller.rb
mix-rails-0.26.0 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.26.0 app/controllers/photos_controller.rb
mix-rails-0.25.1 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.25.1 app/controllers/photos_controller.rb
mix-rails-0.25.0 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.25.0 app/controllers/photos_controller.rb
mix-rails-0.24.1 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.24.1 app/controllers/photos_controller.rb
mix-rails-0.24.0 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.24.0 app/controllers/photos_controller.rb
mix-rails-0.23.1 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.23.1 app/controllers/photos_controller.rb
mix-rails-0.23.0 mix-rails-albums/app/controllers/photos_controller.rb
mix-rails-albums-0.23.0 app/controllers/photos_controller.rb