Class: Bagboy::PagesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Bagboy::PagesController
- Defined in:
- app/controllers/bagboy/pages_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Constructor Details
This class inherits a constructor from Bagboy::ApplicationController
Instance Method Details
#index ⇒ Object
6 7 8 |
# File 'app/controllers/bagboy/pages_controller.rb', line 6 def index render :index end |
#update ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/bagboy/pages_controller.rb', line 10 def update if @scm.pull flash = { success: 'You have successfully updated your chef-repo' } else flash = { error: 'Something went wrong' } end redirect_to request.referer, flash: flash end |