pboksz/wedding-site

View on GitHub
app/controllers/home_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class HomeController < ApplicationController
  def information
    render :information
  end

  def our_story
    render :our_story
  end

  def gallery
    render :gallery, locals: { image_names: image_locator.image_names }
  end

  def recommendations
    render :recommendations
  end

  def contact_us
    render :contact_us
  end

  def sitemap
    render :sitemap, layout: false
  end

  private

  def image_locator
    @image_locator ||= ImageLocator.new
  end
end