Don't you just hate to write Cucumber path helpers to be able to say this?
Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...
You can now add code blocks without indentation, by using triple-backticks: ``` Code block goes here. ```
When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...
Imagine you have a piece of code that tries to send a request to a remote server. Now the server...
If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see...
You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
Most of the JavaScript snippets have code that manipulates the DOM. For that reason dom manipulating javascript code should have...
Saying git diff only shows unstaged changes relative to the index (or HEAD if the index is empty, alternatively any...
This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...
Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites.
Use the command geordi migrate to migrate your databases and to prepare them before running tests. The abbrevation geordi m...
Let's say you have commits that change a file (and looking at the commit details show you the changes...
Removing features and merging those changes back can be painful. Here is how it worked for me.\
A pull quote is a typographical technique in which an excerpt or quote from an article is duplicated within the...
When selecting records in a date range, take care not to do it like this: start_date = Date.parse('2007-05...
Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...
Code coverage is the ratio of code lines kissed by a test vs. the total number of lines in your...
The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does...
When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...
Submit buttons in Rails come with a useful option :disable_with which will disable the button when clicked and change...
List of non-standard CSS attributes that change how the browser resamples scaled images. Only use them if you know...
When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...