Class: Spina::PagesController
Instance Method Summary
collapse
#current_account, #error_explanation!, #image_tag_with_at2x, #link_to_add_fields, #markdown
Instance Method Details
#homepage ⇒ Object
9
10
11
|
# File 'app/controllers/spina/pages_controller.rb', line 9
def homepage
render_with_template(page)
end
|
#show ⇒ Object
13
14
15
16
17
18
19
20
21
|
# File 'app/controllers/spina/pages_controller.rb', line 13
def show
if should_skip_to_first_child?
redirect_to first_live_child.try(:materialized_path) and return
elsif page.link_url.present?
redirect_to page.link_url and return
end
render_with_template(page)
end
|