stackoverflow.com

Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...

weblog.jamisbuck.org

How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...

This card needs to be updated for Rails 3+. Since there is no --debugger flag you need to run:

You won't usually have to do this. It's OK to route all formats to a controller, and let...

When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...

stackoverflow.com

Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...

This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...

makandra dev

This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...

Undeterministically I got a nil error on saving the object caused by the random order of hash elements of the...

Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...

Don't you just hate to write Cucumber path helpers to be able to say this?

The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...

makandra dev

Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...

Sometimes it might be helpful to have a version history for a gem, e.g. when you want to see if...

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...

If Sunspot does not work and fails with a backtrace similar to this: /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response' /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:164...

The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...

Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:

makandra dev
github.com

Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...

Removing features and merging those changes back can be painful. Here is how it worked for me.\

blog.bitcrowd.net

To make the RSpec matcher of the authorization solution Consul work with Rspec 2.x read the following blog post...

jQuery UI's date picker and date time picker doesn't work on touch interfaces. Solution 1: Use Mobiscroll

After my update from MacOS X 10.6 Snow Leopard to 10.7 Lion the search function in Apple Mail stopped working...