Movement Detector Rails app