Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...
Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...
You must reconfigure the guest so it will get its own IP address: Shutdown the guest In the guest's...
When you install Type 1 fonts (like makandra's corporate typeface), they won't show up in OpenOffice. OpenOffice requires...
By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...
If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.
When using the screen tool you may be unable to start a screen session but instead encounter an error:
To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
To show the MySQL default character set you have to login to the MySQL console and execute SHOW VARIABLES LIKE...
You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...
The solution in this card is based on a stack overflow post by Leventix. If you need to make request...
First keep in mind that :dependent => :destroy hooks into before_destroy. So when you use other before_destroy callbacks the...
Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...
Please note that you can break your system with this! This is not recommended. Sometimes the package repository has errors...
The most common use case for Ruby's #collect is to call a method on each list element and collect...
The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...
RSpec lets you define the arguments with which you expect a method to be invoked: subject.should_receive(:say).with('hello...
Capybara will match elements outside of a page's tag. For example, the step definitions below match nodes in a...
If you want to stop getting notified about new messages in a Skype chat (but not leave it altogether), you...
Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...
Using git rebase can be painful but luckily you can resort to cheating with git reset and committing anew.
Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...
Recently, we had an interesting lunch-break with the rails 3.1. asset-pipeline in production mode. Daniel Zahn made a...
The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...