When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0
Sass comes with many built-in functions to manipulate color. Some of the more interesting functions include: adjust-hue($color...
Most web applications contain several examples of state machines, including accounts and subscriptions, invoices, orders, blog posts, and many more...
Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...
You can unpack a .tar.gz file into the current directory like this: tar -xzvf archive.tar.gz The options used are
Because your examples should not change global state, you should not need to care about the order in which RSpec...
I pushed a new version of the Cucumber Factory gem. This new release lets you refer to a previously created...
Choosing the right product to develop is crucial. Great execution is also very important. But if you develop a product...
geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...
When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...
When you edit text in Balsamiq Mockups, you can define inline styles like this: | Bold | Some *bold* text | | Italics | Some...
You know there is the du command to fetch the disk usage of a directory (“.” in this example). By default...
In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...
If you would like to enrich your website with semantic markup like contact data, places or events you should have...
Note: In Rails 3+ you can use Array.wrap instead of the solution here. In the past you could use Array...
XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...
If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...
Copy the attached Ruby code to config/initializers, or paste it into your IRB console. You can now dump any two...
Update: Staticmatic will not be further developed. They suggest to switch to middleman. If you need to make a static...
Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...
When running an executable, ALWAYS use bundle exec. In some cases, running executables without bundle exec may work, if the...
When you do a git add . and have deleted files, git won’t stage them to be commited (as deleted...
Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...
When your cucumber features grow massively over time, the test execution can take a lot of time.