| Class | ScalesController |
| In: |
app/controllers/scales_controller.rb
|
| Parent: | ApplicationController |
GET /scales GET /scales.xml GET /scales.js
# File app/controllers/scales_controller.rb, line 12
12: def index
13: respond_to do |format|
14: format.html
15: format.xml { render :xml => @scales.to_xml }
16: format.js { render :text => @scales.to_json }
17: end
18: end
GET /scales/major GET /scales/major.xml GET /scales/major.js
# File app/controllers/scales_controller.rb, line 23
23: def show
24: @scale = Scale[params[:id]]
25:
26: respond_to do |format|
27: format.html
28: format.xml { render :xml => @scale.to_xml }
29: format.js { render :text => @scale.to_json }
30: end
31: end