Class: ItsSwiss::SpecimenController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ItsSwiss::SpecimenController
- Defined in:
- app/controllers/its_swiss/specimen_controller.rb
Overview
The specimen is documentation and a regression fixture, not a page an
application serves. Refused unless the configuration has asked for it —
the installer mounts the engine inside if Rails.env.development?, and
this is the second lock, because a route is a line in a file someone can
move and this page names every component the library has.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
12 13 14 15 |
# File 'app/controllers/its_swiss/specimen_controller.rb', line 12 def show @sizes = (1..5).map { |step| "--size-#{step}" } @values = (0..5).map { |step| "--value-#{step}" } end |