This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#opera-logo { | |
height: 512px; | |
width: 512px; | |
margin: 0 auto; | |
position: relative; | |
overflow: hidden; | |
} | |
#opera-logo div { position: absolute; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Return a hidden attribute hash (useful in Haml tags - %div{hidden}) | |
def hide(options = {}) | |
if options.has_key?(:unless) && options[:unless] | |
return {} | |
end | |
if options.has_key?(:if) && !options[:if] | |
return {} | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# provides a slick way to add classes inside haml attribute collections | |
# | |
# examples: | |
# %div{add_class("current")} | |
# #=> adds the "current" class to the div | |
# | |
# %div{add_class("current", :if => current?)} | |
# #=> adds the "current" class to the div if current? method | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template_location = options[:template_location] | |
if template_location.is_a?(Hash) || template_location.is_a?(Array) | |
options[:template_location] = template_location.to_a.map do |input, output| | |
[input, css_location(input)] | |
end | |
else | |
default_location = File.join(options[:css_location], "sass") | |
options[:template_location] = {default_location => File.expand_path(css_location(default_location), '..'))} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEFORE HASSLE Sass::Plugin.options[:template_location]: | |
{ "/disk1/home/slugs/146078_f13a911_93e2/mnt/.bundle/gems/gems/compass-960-plugin-0.9.11/sass"=>"/disk1/home/slugs/146078_f13a911_93e2/mnt/public/stylesheets", | |
"/disk1/home/slugs/146078_f13a911_93e2/mnt/.bundle/gems/gems/compass-0.10.0.rc1/frameworks/compass/stylesheets"=>"/disk1/home/slugs/146078_f13a911_93e2/mnt/public/stylesheets", | |
"/disk1/home/slugs/146078_f13a911_93e2/mnt/public/sass"=>"/disk1/home/slugs/146078_f13a911_93e2/mnt/public/stylesheets", | |
"/disk1/home/slugs/146078_f13a911_93e2/mnt/.bundle/gems/gems/compass-0.10.0.rc1/frameworks/blueprint/stylesheets"=>"/disk1/home/slugs/146078_f13a911_93e2/mnt/public/stylesheets"} | |
AFTER HASSLE Sass::Plugin.options[:template_location]: | |
[ | |
["/disk1/home/slugs/146078_f13a911_93e2/mnt/.bundle/gems/gems/compass-960-plugin-0.9.11/sass", "/disk1/home/slugs/146078_f13a911_93e2/mnt/tmp/hassle/disk1/home/slugs/146078_f13a911_93e2/mnt/.bundle/gems/gems/compass-960-plugin-0.9.11"], | |
["/disk1/home/slugs/14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App failed to start | |
/disk1/home/slugs/146078_6ef6675_93e2/mnt/.bundle/gems/gems/haml-2.2.20/lib/sass/plugin.rb:116:in `mkdir': Read-only file system - /disk1/home/slugs/146078_6ef6675_93e2/mnt/public/stylesheets - Heroku has a read-only filesystem. See http://docs.heroku.com/constraints#read-only-filesystem (Errno::EROFS) | |
from /disk1/home/slugs/146078_6ef6675_93e2/mnt/.bundle/gems/gems/haml-2.2.20/lib/sass/plugin.rb:116:in `mkpath' | |
from /disk1/home/slugs/146078_6ef6675_93e2/mnt/.bundle/gems/gems/haml-2.2.20/lib/sass/plugin.rb:116:in `each' | |
from /disk1/home/slugs/146078_6ef6675_93e2/mnt/.bundle/gems/gems/haml-2.2.20/lib/sass/plugin.rb:116:in `mkpath' | |
from /disk1/home/slugs/146078_6ef6675_93e2/mnt/.bundle/gems/gems/haml-2.2.20/lib/sass/plugin.rb:104:in `update_stylesheet' | |
from /disk1/home/slugs/146078_6ef6675_93e2/mnt/.bundle/gems/gems/haml-2.2.20/lib/sass/plugin.rb:83:in `update_stylesheets' | |
from /disk1/home/slugs/146078_6ef6675_93e2/mnt/.bundle/gems/gems/haml-2.2.20/lib/sass/plugin.rb:78:in `each' | |
fr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[jc@macbookpro ~/Rails3/railsgen(master)]# rvm info | |
system: | |
uname: "Darwin jc-macbookpro.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386" | |
shell: "bash" | |
version: "3.2.48(1)-release" | |
ruby: | |
interpreter: "ruby" | |
version: "1.8.7" | |
date: "2010-01-10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[jc@macbookpro ~/Rails3/railsgen(master)]# bundle install | |
Updating git://github.com/rails/rails.git | |
Fetching source index from http://gemcutter.org/ | |
Resolving dependencies | |
Updating git://github.com/rails/rails.git | |
Installing rake (0.8.7) from system gems | |
Installing ruby-debug (0.10.3) from rubygems repository at http://gemcutter.org/ | |
Installing tzinfo (0.3.17) from rubygems repository at http://gemcutter.org/ | |
Installing activeresource (3.0.0.beta1) from git://github.com/rails/rails.git (at master) | |
Installing rspec-core (2.0.0.beta.3) from rubygems repository at http://gemcutter.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract (1.0.0) | |
actionmailer (3.0.0.beta1) | |
actionpack (3.0.0.beta1) | |
activemodel (3.0.0.beta1) | |
activerecord (3.0.0.beta1) | |
activeresource (3.0.0.beta1) | |
activesupport (3.0.0.beta1) | |
arel (0.2.1) | |
builder (2.1.2) | |
bundler (0.9.11) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this Gemfile to bundle your application's dependencies. | |
source 'http://gemcutter.org' | |
gem "rails", "3.0.0.beta1" | |
gem "ruby-debug" | |
gem "mongrel" | |
gem "haml-edge", :require => "haml" | |
gem "compass", "0.10.0.rc1" |