Class: Perron::ConciergeController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Perron::ConciergeController
- Defined in:
- app/controllers/perron/concierge_controller.rb
Instance Method Summary collapse
Instance Method Details
#run_command ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/controllers/perron/concierge_controller.rb', line 7 def run_command command = params[:command] return redirect_back fallback_location: root_path unless command.start_with?("bin/rails generate content") system(command) redirect_back fallback_location: root_path end |
#show ⇒ Object
3 4 5 |
# File 'app/controllers/perron/concierge_controller.rb', line 3 def show render :show end |