Class: BillyCms::BaseController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- BillyCms::BaseController
- Defined in:
- app/controllers/billy_cms/base_controller.rb
Instance Method Summary collapse
Instance Method Details
#set_page_object ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/billy_cms/base_controller.rb', line 12 def set_page_object path = params[:path] if request.path == root_path @page = Page.friendly.find('startseite') elsif path slug = path.split('/').last @page = Page.friendly.find(slug) end end |
#show ⇒ Object
9 10 |
# File 'app/controllers/billy_cms/base_controller.rb', line 9 def show end |