Class: Lookbook::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Lookbook::ApplicationController
show all
- Defined in:
- app/controllers/lookbook/application_controller.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.controller_path ⇒ Object
21
22
23
|
# File 'app/controllers/lookbook/application_controller.rb', line 21
def self.controller_path
"lookbook"
end
|
Instance Method Details
#index ⇒ Object
25
26
27
28
29
30
31
32
|
# File 'app/controllers/lookbook/application_controller.rb', line 25
def index
landing = Engine.pages.find(&:landing?) || Engine.pages.first
if landing.present?
redirect_to lookbook_page_path(landing.lookup_path)
else
render "lookbook/index"
end
end
|
#not_found ⇒ Object
34
35
36
|
# File 'app/controllers/lookbook/application_controller.rb', line 34
def not_found
raise_not_found
end
|