scube-server/app/controllers/tracks_controller.rb
Thibault Jouan 27550fd14e Save track files in new Sound model:
* Consolidate migrations
* Add Sound model. Each sound can belong to a track and contains
  informations about one sound file.
2011-09-20 17:43:20 +00:00

19 lines
281 B
Ruby

class TracksController < ApplicationController
def show
@track = Track.find params[:id]
end
def new
@track = Track.new
end
def create
@track = Track.new params[:track]
if @track.save
redirect_to @track
else
render :new
end
end
end