class PostsController < ApplicationController def index @posts = [] end def index_with_query @posts = Post.all render :index end def index_with_error raise StandardError.new("Something terrible happened") end def index_with_sql_error # TODO: end end