Class: FestivityLocationAreasController

Inherits:
ApplicationController
  • Object
show all
Includes:
Concerns::FestivityCustomPage
Defined in:
app/controllers/festivity_location_areas_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/festivity_location_areas_controller.rb', line 4

def show
  @area = FestivityLocationAreaPage.find_by_slug_for_site(params[:id]).first

  if @area
    @title = "#{current_site.festivity_festival_name}: #{@area.title}"
  else
    file_not_found_for_site
  end

end