Sha256: e60683a9097df154408547d2c656366ed029d332c0a6583be9b1a7a0a33a6648

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

class SofaGallery::GalleriesController < ApplicationController
  
  def show
    @gallery = SofaGallery::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
sofa_gallery-0.0.2 app/controllers/sofa_gallery/galleries_controller.rb
sofa_gallery-0.0.1 app/controllers/sofa_gallery/galleries_controller.rb