on the bash (issued as postgres user) Start/Stop/Restart PostgreSQL pg_ctl -D $configdir start|stop|restart Start/Stop/Restart the corresponding PostgreSQL...
Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...
Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...
Just like we use gems on the server, we use third party JavaScript libraries in the browser. These typically provide...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...
Exercise 1: XML On the start page of your Movie DB, show the title of a random movie that is...
So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...
Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...
When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...
When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
If you want to find the commits that touched a specific text in a file, use git log -S 'text...
We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
If you were using Dusen for its query parsing and LIKE queries, we recommend to migrate to Minidusen, which extracts...
Sometimes you want to test migrations with production or staging data. Dumping single tables makes sense if a complete dump...
Resources Rails Guide: Internationalization API Guide to localizing a Rails application Locale-aware helpers in ActionView::Helpers::NumberHelper
PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...
This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...
You can download .gem files using gem fetch: gem fetch activesupport consul This will produce files like active-support-5.0.0.gem and consul-0.12.1.gem...
to create a Gallery that has a name and has_many :images, which in turn have a...