Class: DrymlSupportController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- DrymlSupportController
- Defined in:
- app/controllers/dryml_support_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit_source ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/controllers/dryml_support_controller.rb', line 3 def edit_source dryml_editor = ENV['DRYML_EDITOR'] if dryml_editor file = File.join(Rails.root, params[:file]) command = dryml_editor.sub(":file", file).sub(":line", params[:line]) system(command) end render :nothing => true end |