* Consolidate migrations * Add Sound model. Each sound can belong to a track and contains informations about one sound file.
		
			
				
	
	
		
			7 lines
		
	
	
		
			154 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			154 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
class SoundsController < ApplicationController
 | 
						|
  def show
 | 
						|
    sound = Sound.find params[:id]
 | 
						|
    send_file sound.path, :type => sound.mime_type
 | 
						|
  end
 | 
						|
end
 |