Class: UUCounter::TracksController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- UUCounter::TracksController
- Defined in:
- app/controllers/uu_counter/tracks_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#fill_cookie, #get_cookie, #get_fullpath, #set_cookie
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/uu_counter/tracks_controller.rb', line 5 def create uuid = path = get_fullpath track = Track.new(uuid: uuid, path: path) result = track.record render json: result end |