Sha256: 59e72af0651358a0ed619569f162ca0090ec57fb0920998935bad5f799b479e9
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
class Gallery::GalleriesController < ApplicationController def index @galleries = Gallery::Gallery.all rescue ActiveRecord::RecordNotFound render :text => 'Gallery not found', :status => 404 end def show @gallery = Gallery::Gallery.find(params[:id]) rescue ActiveRecord::RecordNotFound render :text => 'Gallery not found', :status => 404 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfy_gallery-0.1.1 | app/controllers/gallery/galleries_controller.rb |
comfy_gallery-0.1.0 | app/controllers/gallery/galleries_controller.rb |