Class: BistroCar::BundleController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/bistro_car/bundle_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
# File 'app/controllers/bistro_car/bundle_controller.rb', line 4

def show
  headers['Content-Type'] = "application/javascript"
  render :text => BistroCar::Bundle.new(params[:bundle]).to_javascript
end