Sha256: 382fc0af357e0b696c5e5bd2014bae89294d952ba23fdc2756015870b3fcccb1
Contents?: true
Size: 462 Bytes
Versions: 16
Compression:
Stored size: 462 Bytes
Contents
class ViewAlbumsController < ApplicationController unloadable def index @albums = Album.page(params[:search], params[:page]) end def show if Album.find_by_filename(params[:filename]) == nil @album = Album.find(:first) render :file => "#{RAILS_ROOT}/public/404.html", :layout => false, :status => 404 else @album = Album.find_by_filename(params[:filename]) @photos = @album.photos.page(params[:search], params[:page]) end end end
Version data entries
16 entries across 16 versions & 2 rubygems