0

我在让 Ahoy 向数据库注册信息时遇到问题,但日志显示了一个发布请求:

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"=>{}}

有什么想法为什么不保存到数据库中?

谢谢!

4

1 回答 1

0

好吧,由于某种原因,在我的初始化程序中它有:

class Ahoy::Store < Ahoy::Stores::LogStore

相对于:

class Ahoy::Store < Ahoy::Stores::ActiveRecordStore
于 2015-08-05T23:16:59.337 回答