Class: Kinney::TrackerController
- Inherits:
-
KinneyController
- Object
- ApplicationController
- KinneyController
- Kinney::TrackerController
- Defined in:
- app/controllers/kinney/tracker_controller.rb
Instance Method Summary collapse
Methods inherited from KinneyController
Instance Method Details
#track ⇒ Object
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 |