class Public::PhotosController < ApplicationController layout "public" def index @photos = Photo.all end def show @photo = Photo.find(params[:id]) end end