ruby on rails 异常

执行rails时出现

Bundler could not find compatible versions for gem "activesupport":

In snapshot (Gemfile.lock):
    activesupport (4.0.4)


  In Gemfile:
    rails (= 4.0.3) ruby depends on
      activesupport (= 4.0.3) ruby


Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

意思是我的Gemfile文件和Gemfile.lock文件中版本冲突,先执行bundle update再执行bundle install就可以了。。。


2打开界面出现:

Getting error:

undefined method `environment' for nil:NilClass
Extracted source (around line #5):

<head>
  <title>Dossiyadata</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
</head>
。。。这是rails '4.0.3' 升级到"4.0.4'出现的,解决方法是将Gemfile中gem "sass-rails"版本更改为 "~> 4.0.2" 然后执行bundle install重启服务器即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值