The following Haml will do: %head{ :profile => 'http://www.w3.org/2005/10/profile' } %link{ :href => image_path('favicon.ico'), :rel => 'icon', :type => 'image/vnd.microsoft.icon' }
The box shadows created rendered in IE by CSS3PIE look darker and are blurred differently than in browsers that render...
Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...
When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.
With this plugin, you can create a scalable tooltip by just using a single background image for the tooltip body...
You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...
So you screwed up and copied Paperclip secrets from one project to another. Here is a semi-automatic, painful way...
The following Sass will do it: hr color: #ddd background-color: #ddd border: none height: 1px
PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web...
validates_attachment_content_type :image, :content_type => /^image\/(jpg|jpeg|pjpeg|png|x-png|gif)$/, :message => 'file type is not...
Some browsers render PNG images with color profiles and other shenanigans, some do not. The cleanest way to have consistent...
When a paperclip attachment gains a new style and you have many attachments, reprocessing can take ages. This is because...
has_attached_file( :avatar, :styles => { :large => "300x300", :small => "100x100" }, :convert_options => { all => "-colorspace RGB" } )
script/runner -e development 'Article.all.each { |a| a.image.reprocess! if a.image.exists? }; "done"'
See the lemonade descriptions. Unfortunately, the gem has a few problems: it does not work with Sass2...
.error, .information, .warning { font-weight: bold; } .notice { color: #11bb00; } .error { color: #F53A31; } .information { color: #557; } .warning { color: #d07d2d; }
Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]
PNG transparency for IE 6.
Sprockets is a Ruby library that preprocesses and concatenates JavaScript source files. It takes any number of source files and...
Just because you are capable of building a bikeshed does not mean you should stop others from building one just...
Best code comment ever.