Class: Rcms::PagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Rcms::PagesController
- Defined in:
- lib/generators/templates/app/controllers/rcms/pages_controller.rb
Instance Method Summary collapse
Methods included from ApplicationController
Instance Method Details
#show ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/templates/app/controllers/rcms/pages_controller.rb', line 2 def show @rcms_page = retrieve_rcms_page params[:slug] unless @rcms_page redirect_to root_path, flash: {warning: t("rcms.page.not_found", slug: params[:slug])} end @rcms_page.slug end |