Class: Playbook::SamplesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Playbook::SamplesController
- Defined in:
- app/controllers/playbook/samples_controller.rb
Instance Method Summary collapse
Instance Method Details
#sample_show_rails ⇒ Object
17 18 19 20 21 |
# File 'app/controllers/playbook/samples_controller.rb', line 17 def sample_show_rails params[:type] ||= "rails" @type = params[:type] render template: "playbook/samples/sample_show" end |
#sample_show_react ⇒ Object
23 24 25 26 27 |
# File 'app/controllers/playbook/samples_controller.rb', line 23 def sample_show_react params[:type] ||= "react" @type = params[:type] render template: "playbook/samples/sample_show" end |
#samples ⇒ Object
12 13 14 15 |
# File 'app/controllers/playbook/samples_controller.rb', line 12 def samples params[:type] ||= "rails" @type = params[:type] end |