问题描述
我是一个红宝石栏杆和所有的菜鸟。对不起,如果我的问题是愚蠢的。我使用运行ruby 1.8.7-p334的rvm(作为用户)设置环境。我为我的应用程序创建了一个gemset,现在我想在页面上显示一个地址的地图。
我一直在四处寻找,发现gmaps4rails。
我已经将gem'gmaps4rails'添加到我的Gemfile& bundle install
我修改了我的模型(添加了必需的列和rake db:migrate)和acts_as_gmappable,并且我得到了
未定义的局部变量或方法`acts_as_gmappable'
如果我添加require'gmaps4rails',我得到一个
no no文件加载 - gmaps4rails
任何想法的人?
谢谢。 / p>
我担心这是我的错:
:
我结束了使其工作增加一个 .rvmrc
文件,它将ruby版本设置为 ree
,并且我忘记将此文件添加到我的gitignore ......
好吧,在0.8.3中应该可以,让我知道!
I am a noob with ruby rails and all. Sorry if my question is dumb.
I set up a environment with rvm (as a user) running ruby 1.8.7-p334. I have created a gemset for my "app" and now I would like to show a map of an address on the page.I've been looking around and found gmaps4rails.
I've add "gem 'gmaps4rails' "to my Gemfile & bundle install
I modified my model (added the required columns and rake db:migrate) and acts_as_gmappable and I get undefined local variable or method `acts_as_gmappable'
If I add require 'gmaps4rails' I get a no such file to load -- gmaps4rails
Any ideas folks ?
Thanks.
I fear it's my fault:
after hours fighting with pow: http://pow.cx/
I ended up making it work adding a .rvmrc
file which sets the ruby version to ree
and I forgot to add this file to my gitignore...
Well, should be ok in 0.8.3, let me know!
这篇关于rvm + rails3 + gmaps4rails - acts_as_gmappable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!