When giving a presentation where you do some coding, the font size you usually use is probably a bit too...

github.com

When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:

makandra dev

Timecop is a great gem to set the current time in tests. However, it is easy to introduce flakyness to...

...often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs desktop navigation menus). Since you want your integration tests to behave...

...metrics". This allows you to configure dimensions larger than your display and enable/disable touch behavior. Simply use register_driver to set up a driver that you then connect to Capybara...

In the discussion of the difference between include and extend in Ruby, there is a misconception that extend would add...

before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...

...the file system. Since load order can be important, this may lead to different behavior on different machines which are hard to debug. Simply add a .sort: Dir.glob(Rails.root.join('lib/ext...

postgresql.org

PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...

Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...

relishapp.com

When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...

bibwild.wordpress.com

While debugging an intricate issue with failed HTTP requests I have come to appreciate the more advanced features of the...

In general, you should not put a block element inside an inline element. So don't do this: text

makandra dev
impactahead.com

Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...

developer.mozilla.org

The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...

It's possible to implement simple custom RuboCop cops with very little code. They work exactly the same like existing...

This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...

If the project team consists of at least 2 members, do a daily standup. It should not take much longer...

When using Rails credentials, you will edit the encrypted credentials for staging or production environments from time to time. To...

I recently built a screen with a very high and wide table in the center. This posed some challenges:

Before you continue, ensure that you've created your certificate in the region us-east-1 (N. Virginia). Otherwise...

This card describes different flavors for concatting HTML safe strings in a helper method in Rails. You might want to...

makandra dev
api.rubyonrails.org

Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...