Class: Kinney::TrackerController

Inherits:
KinneyController show all
Defined in:
app/controllers/kinney/tracker_controller.rb

Instance Method Summary collapse

Methods inherited from KinneyController

#gather_topics_for_navigation

Instance Method Details

#trackObject



4
5
6
7
8
9
10
11
12
# File 'app/controllers/kinney/tracker_controller.rb', line 4

def track
  if request.xhr?
    data = params["tracker"].dup
    data["session"] = session[:session_id]
    tracker = Tracker.new data.permit(params_permitted)
    tracker.save
    head :ok
  end
end