finding an @import? (fancy-buttons)

40 views
Skip to first unread message

Jonathan Linowes

unread,
Feb 6, 2010, 12:55:55 AM2/6/10
to compas...@googlegroups.com
Hi,
Just started using compass tonight, in a Rail app.
I tried adding the fancy-buttons plugin, following the instructions at http://github.com/imathis/fancy-buttons
as follows

$ sudo gem install compass --pre
$ sudo gem install compass-colors
$ sudo gem install fancy-buttons

edit config/compass.config, adding
require 'compass-colors'
require 'fancy-buttons'

$ compass install -r fancy-buttons fancy-buttons

Then i added to my appliction.sass file (after the @import blueprint , etc)
@import fancy_buttons.sass

When i try to refresh a page, i get
Sass::SyntaxError: File to import not found or unreadable: fancy_buttons.sass

I see the gems in my gem directory, why isnt @import finding it?

thanx

linoj

Andrew Vit

unread,
Feb 6, 2010, 1:29:44 AM2/6/10
to compas...@googlegroups.com
Add to your compass.rb config file where it says:

# Require any additional compass plugins here.
require 'compass-colors'
require 'fancy-buttons’

Andrew Vit

> --
> You received this message because you are subscribed to the Google Groups "Compass" group.
> To post to this group, send email to compas...@googlegroups.com.
> To unsubscribe from this group, send email to compass-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.
>

Andrew Vit

unread,
Feb 6, 2010, 1:31:02 AM2/6/10
to compas...@googlegroups.com
Oh, sorry. Just saw that you did that step. Then I don’t know, sorry.

On Feb 5, 2010, at 9:55 PM, Jonathan Linowes wrote:

Chris Eppstein

unread,
Feb 6, 2010, 1:33:31 AM2/6/10
to compas...@googlegroups.com
Did you restart rails after installing?

chris

Jonathan Linowes

unread,
Feb 6, 2010, 1:56:14 AM2/6/10
to compas...@googlegroups.com
i got it:
@import fancy_buttons
rather than
@import fancy_buttons.sass
(why?)

Now, I get
TypeError: can't convert nil to String
even when i remove the @import fancy_buttons

But when I uninstall compass -v 0.10.0.pre5 (thus use 0.8.17)
the error goes away, 
but fancy-buttons requires the pre version :( 

Chris Eppstein

unread,
Feb 6, 2010, 1:57:36 AM2/6/10
to compas...@googlegroups.com
Add:

cache_dir = "tmp/sass-cache"

to your config.

chris

Jonathan Linowes

unread,
Feb 6, 2010, 2:05:42 AM2/6/10
to compas...@googlegroups.com
woot!
thx
Reply all
Reply to author
Forward
0 new messages