Administrate: Dependency on bourbon not listed

Created on 22 Jun 2016  路  10Comments  路  Source: thoughtbot/administrate

After upgrading to administrate 0.2.2 (from 0.2.0) my app started throwing:

File to import not found or unreadable: bourbon.
[snip]
./app/views/layouts/application.html.haml:8:in `_app_views_layouts_application_html_haml___2930206960703904785_47038691733580'

This was fixed by adding the 'bourbon' gem to my Gemfile, but I feel it should properly be included in administrate's dependencies instead.

bug

Most helpful comment

@nickcharlton No new release yet?

All 10 comments

Thanks @pedantic-git I just ran into this issue today and was trying to figure out why paths from my images were not there. This saved me some time 馃憤

@fourcolors It looks like it's fixed in the master branch now, so hopefully in the next release we can drop this.

@pedantic-git Thanks again!

@danbee can you confirmed that this has been fixed? If so I think we can close the issue.

It鈥檚 not currently fixed on the master branch.

I solved this by adding require 'bourbon' in my config/application.rb.

What would be the right way to fix this on master?

I just encountered this bug on Rails 5, fresh app with a single model. I resolved it by adding bourbon to my Gemfile directly, and bundling.

To fix this, either put bourbon in your Gemfile or require 'bourbon' somewhere in your initializers. Something like @kpheasey's patch should eventually be added to administrate to fix this for good.

@nickcharlton No new release yet?

@nickcharlton - This issue still seems to be a problem for a new install that uses the latest version (0.0.11).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rmarronnier picture rmarronnier  路  4Comments

namiwang picture namiwang  路  4Comments

stephenson picture stephenson  路  3Comments

drewtunney picture drewtunney  路  3Comments

kwerle picture kwerle  路  4Comments