Class: OutroRails::ChordVoicingsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/outro_rails/chord_voicings_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

Raises:

  • (ActiveRecord::RecordNotFound)


5
6
7
8
9
10
# File 'app/controllers/outro_rails/chord_voicings_controller.rb', line 5

def show
  @voicing = ChordVoicing.find_by_param(params[:id])
  raise ActiveRecord::RecordNotFound, "no voicing #{params[:id].inspect}" unless @voicing

  @chord = @voicing.chord
end