Class: FlatpagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- FlatpagesController
- Defined in:
- app/controllers/flatpages_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Public: Show flatpage.
Instance Method Details
#show ⇒ Object
Public: Show flatpage
Returns text/html
5 6 7 8 |
# File 'app/controllers/flatpages_controller.rb', line 5 def show @page = Flatpage.find_by_path(params[:path]) raise ActiveRecord::RecordNotFound unless @page.present? end |