Geokit in Ruby on Rails, problem with acts_as_mappable

末鹿安然 提交于 2019-12-06 13:06:17

acts_as_mappable is part of geokit-rails. You need to install the geokit-rails plugin.

script/plugin install git://github.com/andre/geokit-rails.git

To check if the plugin is properly installed, look under the vendor/plugins directory of your Rails app. It should have a geokit-rails sub directory. It it, you'll find all the plugin files, other subdirectories, including the file acts_as_mappable.rb (in vendor\plugins\geokit-rails\lib\geokit-rails).

If everything seems to be properly installed, try adding "require geokit" to the top of the init.rb file in the plugin root folder (vendor\plugins\geokit-rails).

Be sure to restart your app server after making the modifications.

What method are you using to include the geokit library? The plugin? The gem? Is the gem unpacked into vendor? What does your environment.rb look like?

Edit: I meant to leave this as a comment on the question - pardon me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!