Class: Reloader::ReloaderController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/reloader/reloader_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
8
9
10
# File 'app/controllers/reloader/reloader_controller.rb', line 4

def show
  respond_to do |format|
    format.js {
      render :file => File.expand_path("../../../../public/javascripts/#{params[:file]}.js", __FILE__)
    }
  end
end