imathis/fancy-buttons — Issue #34: File to import not found or unreadable: fancy-buttons
Author: scottmessinger
Created: 2011-10-21 02:51:19+00:00
State: open

Hi!

## The Error
I seem to be having problems getting fancy-buttons up and running. This is the error message I receive:

```shell
Syntax error: File to import not found or unreadable: fancy-buttons.
Load paths: /Users/ScottMessinger/code/hlavka/app/assets/stylesheets /Users/ScottMessinger/.rvm/gems/ruby-1.9.2-p180-patched@rails31/gems/compass-0.12.alpha.0/frameworks/blueprint/stylesheets
/Users/ScottMessinger/.rvm/gems/ruby-1.9.2-p180-patched@rails31/gems/compass-0.12.alpha.0/frameworks/compass/stylesheets
Compass::SpriteImporter
on line 9 of /Users/ScottMessinger/code/hlavka/app/assets/stylesheets/useful.sass/useful.sass"
```

## The Set-up
I think I've set everything up right. Here's what I've done (I'm working on a Rails 3.1.1 app)

**Gemfile**

```ruby
group :assets do
gem 'sass', '~> 3.1.10'
gem 'sass-rails', "~> 3.1.4"
gem 'compass', "0.12.alpha.0"
end

gem 'fancy-buttons'
```

**config/compass.rb**

```ruby
require 'fancy-buttons'
```

**shell** to install fancy-buttons

```shell
$ compass install -r fancy-buttons -f fancy-buttons
identical app/assets/stylesheets/ie6.sass
identical app/assets/images/button_bg.png

[ .... ]

```

**application.css**

```css
@import fancy-buttons
.left_arrow
@include fancy-button(#2966a8)
```

I was curious if compass is registering fancy-buttons as a framework, and it appears to be doing so:

```shell
$ compass frameworks
Available Frameworks & Patterns:

* blueprint
- blueprint/basic - A basic blueprint install that mimics the actual blueprint css.
- blueprint/buttons - Button Plugin
- blueprint/link_icons - Icons for common types of links
- blueprint/project - The blueprint framework.
- blueprint/semantic - The blueprint framework for use with semantic markup.
* compass
- compass/ellipsis - Plugin for cross-browser ellipsis truncated text.
- compass/extension - Generate a compass extension.
- compass/pie - Integration with http://css3pie.com/
- compass/project - The default project layout.
* fancy-buttons
- fancy-buttons/project
```

## In conclusion

I'm not sure where to go next. Any ideas?