makandra dev
rubydoc.info

CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...

github.com

Recent Bundler (1.16.1) started complaining about missing dependencies in the Gemfile. This is due to a stricter handling of specifications...

hackernoon.com

CSS Flexbox has become extremely popular amongst front-end developers the last couple of years. This isn’t surprising, as...

jsfiddle.net

When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself.

For applications coming with lots of stylesheets and scripts, asset compilation might take quite long. This can be annoying when...

makandra dev
begriffs.com

The attached article explains options you have to store the order of items in a database table. The simplest solution...

If the argument list is the same every time: expect(object).to receive(:foo).with('argument').and_return('response 1...

Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...

Don't sum up columns with + in a sql-query if NULL-Values can be present. MySQL and PostgreSQL cannot...

When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...

If you have a single node elasticsearch instance and indices with replicas enabled your cluster state will be yellow. If...

makandra dev
github.com

geordi delete_dumps [directory] Recursively search for files ending in *.dump and offer to delete those. When no...

You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...

MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...

On your local system that only hosts non-critical development data and only you have access to, you can store...

api.rubyonrails.org

Rails offers a way to prepend (or append) view paths for the current request. This way, you can make the...

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