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...
The SQL code generated by Graticule's spherical distance computation is insufficient and can lead to NULL distances in edge...
Seems like a useful gem for cases where ActiveRecord is overkill but you don't want to do everything by...
Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...
When you have objects in your database that hold latitude and longitude and you want to find others that are...
Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...
When using state_machine you sometimes need to know whether an object may execute a certain transition. Let's take...