Closed Jesse-Breuer closed 11 years ago
Hi Jesse,
I need to take a look at better integration with rails 3.1. I ran a quick test, if you add the sassy-button gem to your gemfile update your bundle then run:
bundle exec compass install -r sassy-buttons -f sassy-buttons
It should generate the sassy-button partial for you, in my test it created a stylesheet directory, so I had to move it to the app/assets/stylesheets directory.
I then imported the sassy button partial, @import "sassybuttons" and everything worked for me.
I will address this in the new release wich should be coming in a few days.
Let me know if you have any more questions.
Jared
thanks. I had this working following your instructions, I then tried to move my rails project to a different machine and got errors again. Here is the message I get in the css file:
File to import not found or unreadable: sassy-buttons. Load paths: . /Users/jessebreuer/rails-projects/sass-compass-examples/sassy-buttons/app/assets/stylesheets /Users/jessebreuer/.rvm/gems/ruby-1.9.2-p180@rails-3.1-beta-1/gems/compass-0.11.1/frameworks/compass/stylesheets /Users/jessebreuer/.rvm/gems/ruby-1.9.2-p180@rails-3.1-beta-1/gems/compass-0.11.1/frameworks/blueprint/stylesheets
@Jesse-Breuer - you may have already fixed this by now... but... You're trace shows you are using Rails 3.1-beta-1. It seems it was a pretty rough and rocky road from Rails 3.0 to Rails 3.1 and the asset pipeline and Sass/compass integration didn't really work will until 3.1.1. I had to had patch a lot of things until 3.1.1 came out. I highly recommend getting the latest if you haven't already. You also really need compass >= 0.12.alpha for Rails 3.1.1.
I got this running with my app in about 10 minutes - very nice buttons by the way. In your Gemfile just add the line "gem 'sassy-buttons'. Here is a snip from my Gemfile:
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem "therubyracer"
gem 'sass-rails', "~> 3.1"
gem 'coffee-rails', "~> 3.1"
gem 'uglifier'
gem 'compass', '~> 0.12.alpha' # also using the compass framework for SASS
gem 'sassy-buttons'
gem 'chunky_png' # compass uses this for sprites
gem 'oily_png' # native c library for png routines to speed up chunky_png
end
After that all it takes is a "bundle
hey, i think i'm having te same problem i dont know my way around terminal, or ruby i have compass installed
any help would be welcome!
WARNING: RubyGems 1.2+ index not found for:
RubyGems will revert to legacy indexes degrading performance. ERROR: could not find gem sassy-buttons locally or in a repository
will try to take a look at this tonight.
Me too, I really need to use this.
are you guys both having trouble getting integration rails or just stand alone? If with rails what version are you using?
integration rails or just stand alone? > integration rails
my env is as follows; Rails 3.2.11 Ruby ruby-1.9.3-p374 most of gem are latest Mac OSX 10.8.2
i'm using the stand alone, but i can install rails if this would fix :)
ok thanks for the info guys, sorry a little jammed pack at work right now so still trying to get around to debugging this. I just tried a stand alone fresh install and could not reproduce the error. @vanss2 can you paste what you are typing into the terminal here.
I just did
gem install sassy-buttons compass create projectname -r sassy-buttons -u sassy-buttons
and all works fine. Can you verify you have the sassy-buttons gem installed and try creating a new project?
@jhardy thanks you very much. It could work in my env.
I have the same error:
$ gem install sassy-buttons Successfully installed sassy-buttons-0.2.5 Parsing documentation for sassy-buttons-0.2.5 1 gem installed
$ compass create projectname -r sassy-buttons -u sassy-buttons LoadError on line ["51"] of /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- sassy-buttons Run with --trace to see the full backtrace
$ compass install sassy-buttons LoadError on line ["51"] of /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- sassy-buttons Run with --trace to see the full backtrace
I'm getting the same error in a non-ruby web project.
I'm using
gem install sassy-buttons Successfully installed sassy-buttons-0.2.6... compass install sassy-buttons No such framework: "sassy-buttons"
My environment: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux] Using rbenv
In an existing project, on running: compass install sassy-buttons
I get No such framework: "sassy-buttons"
Also I wasn't clear on this instruction:
"Edit the project configuration file and add: require ‘sassy-buttons’"
I am adding it to config/application.rb in my rails 3.1 file. Not sure if that's what is meant by "the project configuration file".