执行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重启服务器即可