1 2 3 4 5 6 7
class EntriesController < ApplicationController def show @entry = Entry.where(directory: params[:directory], slug: params[:slug]).first end end