Class: RacePerformancesController

Inherits:
SiteController
  • Object
show all
Defined in:
app/controllers/race_performances_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/race_performances_controller.rb', line 6

def show
  expires_in 1.month, :private => false, :public => true
  respond_to do |format|
    format.html { 
      render
    }
    format.json {
      render :json => @performance.neighbourhood(10).to_json(:vs => @performance)
    }
  end
end