Different Prefix
Issue
It may just be me doing something wrong but, working in rails, if the project is in a different partition than where I have my Ruby installation, i get a different prefix error.
Temporary solution
If I move my project to the C drive then everything is perfectly fine.
Proposal
It would be nice if the gem allowed me to keep my projects in other partitions as well. Is this something that could be fixed? or is it bootstrap's problem?
I think this is an issue with the asset pipeline/Sass, rather than bootstrap-sass, since we don't really handle the loading of files, we hook into other frameworks to let them sort that for us.
Hi, I also ran into the same problem:
ArgumentError in Pages/welcome#index
Showing E:/Webs/Projects/uniRex/Web/unirex/app/views/layouts/application.html.erb where line #5 raised:
different prefix: "C:/" and "E:/Webs/Projects/uniRex/Web/unirex/app/assets/stylesheets" (in E:/Webs/Projects/uniRex/Web/unirex/app/assets/stylesheets/bootstrap_and_overrides.css.scss)
and here are some lines of the full strace:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/pathname.rb:465:in relative_path_from' sass-rails (3.2.5) lib/sass/rails/importer.rb:37:inresolve'
sass-rails (3.2.5) lib/sass/rails/importer.rb:47:in find_relative' sass (3.1.16) lib/sass/tree/import_node.rb:45:inimport'
sass (3.1.16) lib/sass/tree/import_node.rb:25:in imported_file' sass (3.1.16) lib/sass/tree/import_node.rb:34:incss_import?'
If you remove the @import "bootstrap"; the error disappears. Sorry for commenting again a closed issue, but before I ask anywhere for this problem, I want to be on the safe side, that is has nothing to do with bootstrap-sass.
Thanks in advance, Micha
The easiest way (for me at least) to work around this issue is to bundle your project gems into the project folder itself. From inside your project folder:
bundle install --path .bundle
This installs your project's requested gems into the .bundle folder inside the project. Subsequent calls to bundle exec will remember to use this cache of gems and should mitigate against the error above.
I solved the problem through creating a symlink on the drive containing my Ruby installation to my project with the same folder structure.
E.g. my project is at "G:\project\web" so I created a symlink to that folder on "D:\project\web".
When I start my local development server from the project symlink mentioned (on D:\ instead of G:) bootstrap-sass works for the project without issues.
Is there any reason this is closed? Can this not be fixed instead of having to work around it?
@betam4x it's closed because it's not in our domain. We rely on sass and rails (or compass) to determine load paths and structure, so it would be more appropriate to submit an issue to them.