Class: Playbook::SamplesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/playbook/samples_controller.rb

Instance Method Summary collapse

Instance Method Details

#sample_show_railsObject



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_reactObject



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

#samplesObject



12
13
14
15
# File 'app/controllers/playbook/samples_controller.rb', line 12

def samples
  params[:type] ||= "rails"
  @type = params[:type]
end