The httpclient gem comes with a custom SSL cert store. While an customizable, application-level cert store is great when...

When you have string contents (e.g. a generated binary stream, or data from a remote source) that you want to...

You need to update a lof gems. Make sure you don't have any version constraints in your...

fontawesome.com

See the attached link for a list of icons in Font Awesome 4. Icon names work differently in Font Awesome...

Running rails server will start a local server that you can access via http://localhost:3000. When you are working...

makandracards.com

In Spreewald 1.10.4+, nested patiently blocks are now patient. Here is an example: patiently do outer_code patiently do

Form fields can be rendered as noneditable by setting the disabled or the readonly attribute. Be aware of the differences...

stackoverflow.com

Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...

Bundler::GemRequireError: There was an error while trying to load the gem 'mysql2'. Gem Load Error is: Incorrect MySQL client...

Trying to open a vnc window with geordi geordi vnc ended up with this error: > VNC viewer could not be...

stackoverflow.com

mysql> SELECT @@global.version; +------------------+ | @@global.version | +------------------+ | 5.6.30 | +------------------+ 1 row in set (0,00 sec) MySQL 5.6 Reference Manual says "BLOB and TEXT...

Use bundler > 1.15 to fix Gem::LOADED_SPECS_MUTEX (NameError). Given the following project: ruby -v ruby 1.8.7

guides.rubyonrails.org

When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status...

w3c.github.io

Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...

If you want to make a screenshot of a website that works well in print or on a high-DPI...

makandra dev

When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...

I recently had fun with replacing a custom video plattform ("mycustomtv") in one of our applications. I learned a lot...

makandra dev
github.com

Generating a project README Finally: Support for modelling associations between models in your application model! Example: # lib/katapult/application_model.rb

Sometimes it's necessary for you to check which ports are in use on your local machine and which process...

Understanding your type of cronjob Some cronjobs must only run on a single server. E.g. when you run nightly batch...

When installing gems, a lot of time is spent building locally installed documentation that you probably never use.

When you have a pending Cucumber step (or feature) that also uses an existing VCR cassette, your pending test may...

makandra dev
github.com

Katapult 0.3.0 brings Rails 5 and Ruby 2.5 support with a new design, plus a ton of smaller features, fixes...

Enumerable#all? returns true for an empty collection. This totally makes sense but you have to think about it when...