Gul
Gul

Reputation: 1767

Rails 3.2 and activeadmin

Just make and upgrade to rails 3.2 from 3.1.3.

The activeadmin is not getting work else is fine so far... its not ladading css files and showing this exception in admin.css file

Syntax error: File to import not found or unreadable: bourbon.
              Load paths:
                /home/gull/Desktop/projects/avm_web_services/public/stylesheets/sass
                /home/gull/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activeadmin-0.4.0/app/assets/stylesheets
                /home/gull/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activeadmin-0.4.0/lib/active_admin/sass
        on line 11 of /home/gull/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activeadmin-0.4.0/app/assets/stylesheets/active_admin/mixins/_all.css.scss
        from line 1 of /home/gull/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activeadmin-0.4.0/app/assets/stylesheets/active_admin/_mixins.css.scss
        from line 2 of /home/gull/.rvm/gems/ruby-1.9.2-p180@rails3/gems/activeadmin-0.4.0/lib/active_admin/sass/active_admin.scss

Thanks in advance

Upvotes: 6

Views: 2143

Answers (3)

Gret
Gret

Reputation: 325

I have the same "Syntax error: File to import not found or unreadable: bourbon" problem, but neither

rails generate active_admin:assets

nor

Bundler.require(:default, :assets, Rails.env)

solve my problem.

Finally I bourbon install in my project and then move all the generated stylesheets/folders to app/assets/stylesheets folder, and it works, so far so good...

Upvotes: 1

Ivan
Ivan

Reputation: 3297

rails generate active_admin:assets

Upvotes: 11

Erik Östling
Erik Östling

Reputation: 33

I had the same problem and solved it like so (application.rb):

https://gist.github.com/1197686

Upvotes: 1

Related Questions