1 2 3 4 5 6 7
class BlogsController < ApplicationController def show @blog = Blog.find_by_slug(params[:slug]) end end