开发者

Getting undefined method content_for()

my mac just broke and I had to migrate to an Ubuntu machine. I am working on an app 开发者_如何学Gothat is already on production on an Ubuntu machine as well.

I cloned this app into my new machine and all the view helpers seems to go missing, btw I am ussing HAML.

I ran my specs and I am getting tons of :

undefined method url_for for #

undefined method t for #

undefined method content_for for #

undefined method form_for for #

Here are the contents of my Gemfile: http://gist.github.com/563759

I've removed all gems from my new machine and reinstall them using bundler to match my production environment.

I also use rvm, I don't know what additiona info may be relevant

Please help!!!


Not sure but why did you add the :require => nil line in your Gemfile? Doesn't this mean it will NOT load Rails resulting in the missing methods you see above?

Also, are you using the same version of Bundler? Bundler recently got upgraded to 1.0 maybe the previous bundle install was using an older version?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜