Ahoy 没有在数据库中存储事件,但日志中有一个 POST 请求
Ahoy is not storing events in the DB but there is a POST request in the logs
我在让 Ahoy 向数据库注册信息时遇到问题,但日志显示 post 请求:
Started POST "/ahoy/events" for 54.163.248.147 at 2015-08-05 22:43:41 +0000 Processing by Ahoy::EventsController#create as JSON Parameters: {"_json"=>[{"id"=>"34e8f9b6-a85f-4e15-a7f4-0992fd68cb71", "name"=>"$view", "properties"=>{"url"=>"http://unshakable-missile-106309.nitrousapp.com:3000/", "title"=>"Trendosaur", "page"=> "/"}, "time"=>1438814619.857}], "event"=>{}}
知道为什么这没有保存到数据库吗?
谢谢!
好吧,由于某种原因,在我的初始化程序中它有:
class Ahoy::Store < Ahoy::Stores::LogStore
相对于:
class Ahoy::Store < Ahoy::Stores::ActiveRecordStore
我在让 Ahoy 向数据库注册信息时遇到问题,但日志显示 post 请求:
Started POST "/ahoy/events" for 54.163.248.147 at 2015-08-05 22:43:41 +0000 Processing by Ahoy::EventsController#create as JSON Parameters: {"_json"=>[{"id"=>"34e8f9b6-a85f-4e15-a7f4-0992fd68cb71", "name"=>"$view", "properties"=>{"url"=>"http://unshakable-missile-106309.nitrousapp.com:3000/", "title"=>"Trendosaur", "page"=> "/"}, "time"=>1438814619.857}], "event"=>{}}
知道为什么这没有保存到数据库吗?
谢谢!
好吧,由于某种原因,在我的初始化程序中它有:
class Ahoy::Store < Ahoy::Stores::LogStore
相对于:
class Ahoy::Store < Ahoy::Stores::ActiveRecordStore