You may encounter problems with passenger starting an application with an updated rails. If you find an error like this...
Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...
In Capistrano 2, directories in shared_children used to be symlinked to the shared directory during the finalize_update task...
tl;dr: Use event.currentTarget unless you are absolutely certain that you need event.target. Since it hasn't been written down...
sslscan is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
Re-creating a complex ActiveRecord scenario quickly without setting up a full-blown Rails app can come in handy e.g...
Several Rails migration methods accept index: true as an option to create an index. In some cases (like #add_column...
dmesg shows the kernel ring buffer containing low-level system messages. Per default, dmesg shows a timestamp:
When using send_file (for example for attachments of any kind), make sure your application knows the correct mime types...
You can freeze any Ruby object to prevent further modification. If you freeze an ActiveRecord and try to set an...
If you want to grow a Ruby Array, you might find out about #fill but it is not really what...
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
If you want to sort values from an enumerable into two arrays based on whether they match a certain criteria...
To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...
When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...
Enumerable#count can do three things. With no argument provided, it returns the number of items. With an argument, it...
Array#flatten by default flattens an array recursively. To only flatten the array for e.g. one level, it takes an...
When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...
The Javascript in operator does what Hash#has_key? does in Ruby: Return whether an object has a property.
This will list all branches matching your query as input options for git checkout greckout ar 1) ar/cache-api-keys-1098...
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...