[英]Rails Blazer Gem. The map is not shown
I have a rails project and i am using the Gem Blazer. 我有一个rails项目,正在使用Gem Blazer。
When I use a query that should create the map this is not shown. 当我使用应创建地图的查询时,未显示。 A bar graph is shown instead.
改为显示条形图。
Can this be due to the mapbox token? 可以归因于mapbox令牌吗?
I have the mapbox token configured in the shared section of secrets.yml 我在secrets.yml的共享部分配置了mapbox令牌
Anyone knows whats the problem? 有人知道出什么问题吗?
With the update to Rails 5.2, the file secrets.yml don´t work anymore. 随着Rails 5.2的更新,secrets.yml文件不再起作用。
I simply put the variable in the development.rb just like that: ENV['MAPBOX_ACCESS_TOKEN'] = "token is here". 我只是将变量放在development.rb中,如下所示:ENV ['MAPBOX_ACCESS_TOKEN'] =“令牌在这里”。
Problem Solved 问题解决了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.