Class: Perron::ConciergeController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/perron/concierge_controller.rb

Instance Method Summary collapse

Instance Method Details

#run_commandObject



7
8
9
10
11
# File 'app/controllers/perron/concierge_controller.rb', line 7

def run_command
  system(params[:command])

  redirect_back fallback_location: root_path
end

#showObject



3
4
5
# File 'app/controllers/perron/concierge_controller.rb', line 3

def show
  render :show
end