Class: StaticController

Inherits:
Ecrire::ThemeController show all
Defined in:
lib/ecrire/app/controllers/static_controller.rb

Overview

The Controller that renders static pages

It looks for a a template matching the path provided.

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_user, #signed_in?, #url

Instance Method Details

#showObject



7
8
9
# File 'lib/ecrire/app/controllers/static_controller.rb', line 7

def show
  render "static/#{params[:view].to_s}"
end