Track availability, fixes

This commit is contained in:
magnolia-fan
2011-11-24 03:37:41 +04:00
parent d4203d26fd
commit b82ade229d
7 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class TrackController < ApplicationController
def report_unavailable
track = Track.find(params[:id])
unless track.nil? or track.available
track.available = true
track.available = false
track.save
return render :json => { :status => :success }
end