Class: BanditController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- BanditController
- Defined in:
- lib/generators/bandit/templates/bandit_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'lib/generators/bandit/templates/bandit_controller.rb', line 4 def index @experiments = Bandit.experiments end |
#show ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/bandit/templates/bandit_controller.rb', line 8 def show @experiment = Bandit.get_experiment params[:id].intern respond_to do |format| format.html format.csv { render :text => experiment_csv(@experiment) } end end |