On 16 July 2014 12:41, Roelof Wobben <
rwo...@hotmail.com> wrote:
> Thanks.
>
> but the problem is not solved.
> When I change that part to this :
>
> gem 'rails', '4.1.4'
> gem 'bootstrap-sass', '2.3.2.0'
> gem 'sprockets', '2.11.0'
>
> I see this error when running rails s
>
> /var/lib/gems/1.9.1/gems/bootstrap-sass-2.3.2.0/lib/bootstrap-sass.rb:14:in
> `require': cannot load such file -- sass-rails (LoadError)
> from
> /var/lib/gems/1.9.1/gems/bootstrap-sass-2.3.2.0/lib/bootstrap-sass.rb:14:in
> `load!'
You have confused Gemfile.lock by putting in sass-rails and then taking it out.
>
>
> After adding sass-rails to the gem file I see this error when doing bundle
> install :
>
> Bundler could not find compatible versions for gem "sprockets-rails":
> In Gemfile:
> sass-rails (>= 0) ruby depends on
> sprockets-rails (~> 2.0.0) ruby
>
> rails (= 4.1.4) ruby depends on
> sprockets-rails (2.1.3)
Go back to the most recent working version of your app in your git
repository and just make the changes from the tutorial again, that
should sort it. That is why git (and similar tools) are so valuable.
Any time you mess things up you can easily get back to a working
system.
For anyone else who finds this and has not been using a Source Control
System then probably the best solution would be to revert Gemfile to
*exactly* what it should be as required by the tutorial, delete
Gemfile.lock and run
bundle install
again. Hopefully That will regenerate the correct Gemfile.lock.
Colin