When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...
Nowadays it is fairly easy to intercept and modify mails globally before they are sent. All you have to do...
Since Rails 5, domain models inherit from ApplicationRecord by default. This is the place to put code that should be...
Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...
Ruby's standard library is in the process of being gemified. It will soon - Ruby 2.5 - consist of RubyGems, which...
Middleman is a static page generator that brings many of the goodies that Rails developers are used to.
Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...
Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include reference (unique...
Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.
This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...
When you load a dump for development, records may reference images that are not available on your machine.
The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...
This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...
on the bash (issued as postgres user) Start/Stop/Restart PostgreSQL pg_ctl -D $configdir start|stop|restart Start/Stop/Restart the corresponding PostgreSQL...
Looks like ActiveState is trying to market a new Ruby distribution for Enterprises: ActiveRuby Enterprise Edition is designed for businesses...
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
/home/.../ruby/gems/2.1.0/gems/bundler-1.14.3/lib/bundler/rubygems_ext.rb:45:in `full_gem_path': uninitialized constant Bundler::Plugin::API::Source (NameError) Solution: Upgrade Rubygems beyond 2.6.9...
Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...
We generally use multiple application servers (at least two) and you have to search on all of them if you...
We have projects that have been developed using many different versions of Ruby. Since we do not want to...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...
The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...
TruffleRuby is an experimental Ruby implementation that tries to achieve ~10x performance over MRI. This has been on our radar...