Railscast 地理编码缺少 JSON::ParserError 常量
复制 Railscast #273 中的地理编码示例 http://railscasts.com/episodes/273-geocoder 在 Rails 3.1rc4 下使用:
multi_json (1.0.3)
nifty-generators (0.4.6)
我知道
NameError in LocationsController#create
uninitialized constant JSON::ParserError
Rails.root: ...
Application Trace | Framework Trace | Full Trace
app/controllers/locations_controller.rb:20:in `create'
This error occurred while loading the following files:
multi_json/engines/json_gem
我一定缺少定义这个的东西。有人有想法吗?rc4
Replicating the geocoding example from Railscast #273 at http://railscasts.com/episodes/273-geocoder
under Rails 3.1rc4 using:
multi_json (1.0.3)
nifty-generators (0.4.6)
I get
NameError in LocationsController#create
uninitialized constant JSON::ParserError
Rails.root: ...
Application Trace | Framework Trace | Full Trace
app/controllers/locations_controller.rb:20:in `create'
This error occurred while loading the following files:
multi_json/engines/json_gem
I must be missing something which defines this. Anyone have an idea?rc4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论