at.
at.

Reputation: 52510

Zurb Foundation strange gem issues

Working on a MacBook Pro, Zurb Foundation is acting funny. Dropdown menus don't work, Orbit slider acting funny, etc. I figure there's a problem in my code. But if I checkout the same exact project on 2 different computers (a windows 7 PC and another MacBook Pro), everything works perfect.

I checked every file difference and the only file that's different is the assets/foundation_and_overrides.css file.

This is the difference, the rails server that's not working properly shows these kinds of lines:

/* line 241, ../../../../.rvm/gems/ruby-1.9.3-p194@ucode/gems/zurb-foundation-4.2.3/scss/foundation/components/_global.scss */

And the computers that work fine show something similar to:

/* line 264, ../../../../../../Ruby193/lib/ruby/gems/1.9.1/gems/zurb-foundation-4.3.1/scss/foundation/components/_global.scss */

As you can see, the issue seems to be that the bad rails server is using an older version of Zurb Foundation for some reason. Even though bundle update shows version 4.3.1. In fact, we specified this in the Gemfile:

gem 'zurb-foundation', '4.3.1'

Upvotes: 0

Views: 127

Answers (1)

Edward
Edward

Reputation: 3499

Try

bundle exec rails s

to make sure you're using the gems from the bundle, not system gems. Also it looks like you're using a different version of ruby. Are you using rvm or anything else to set the ruby version?

Upvotes: 1

Related Questions