Sha256: cca8ab1303f5a14100e9c3547671fe78500f283fbfaf1d32ff26932085880d92

Contents?: true

Size: 254 Bytes

Versions: 20

Compression:

Stored size: 254 Bytes

Contents

class HomeController < ApplicationController
  def index
    xmen_or_avengers = params[:xmen_or_avengers] || 'xmen'
    puts send(xmen_or_avengers.to_sym)
  end

  private

  def xmen
    'Wolverine'
  end

  def avengers
    'Captain America'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.3.5 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.3.4 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.3.3 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.3.2 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.3.1 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.3.0 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.43 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.42 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.41 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.40 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.39 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.38 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.37 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.36 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.35 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.34 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.33 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.32 after_templates/addons/brakeman/app/controllers/home_controller.rb
rails_app_generator-0.2.31 after_templates/addons/brakeman/app/controllers/home_controller.rb