This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.

For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...

makandra dev

The following initializer provides an :alias => "my_route_name" option to restful routes in your route.rb. This simply makes the...

git diff commit_hash -- path/to/file Provide any commit hashes or branch names like "master" for commit_hash.

This note describes how to setup a box running Ubuntu to share its Internet connection with another PC.

This returns the name (including path) of your current layout: response.layout => "layouts/admin" # inside views that are using the 'admin' layout...

When using form_for you can give the form's target URL either as a string or an array:

github.com

The ancestry gem allows you to easily use tree structures in your Rails application. There is one somewhat unobvious pitfall...

If you want to see how long your database queries actually take, you need to disable MySQL's query cache...

Even when you're using bundler, it might be significant in which order your gems are listed in your Gemfile...

timetobleed.com

This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...

A good tool to generate strong passwords and secrets is "apg". You can get it with sudo apt-get install...

If you need to call a state_machine event and do not want to re-define resource_controller's create...

Both these approaches will keep your GET parameters -- and will only work for GET requests. Capybara: When /^I reload the...

In /etc/crontab In /etc/cron.d/* In /etc/cron.hourly/* In /etc/cron.daily/* In /etc/cron.weekly/* In /etc/cron.monthly/* In the personal crontab of any user. This...

You can use record.send(:update_without_callbacks) or record.send(:create_without_callbacks) This can be used as a...

web.archive.org

With its you can switch the subject of an example to a method value of the current subject: describe Array...

Find conditions for scopes can be given either as an array (:conditions => ['state = ?', 'draft']) or a hash (:conditions => { 'state' => 'draft...

When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...

This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...

You should test the callback methods and its correct invocation in two separate tests. Understand the ActiveRecord note before you...

Be careful! The following solution will delete files on a volume. If you don't know exactly what you're...

emphaticsolutions.com

In a great post about named routes in Rails, path vs. url, Viget Labs ponders which variant is best used...

makandra dev
w3.org

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' }