Blog

Rails

108 posts tagged rails — the same founder-tested patterns, filtered.

It's Time For Active Job

It's Time For Active Job

Recently we have upgraded one of our own projects to Rails 4.2. New minor version contains many improvements of old features and adds some new ones.
DelayedJob and PG Error No Connection to Server

DelayedJob and PG Error No Connection to Server

Recently I’ve got strange errors on the staging server. Delayed::Job workers started successfully.
Recent Searches & Sorting Hashes: How They are Connected

Recent Searches & Sorting Hashes: How They are Connected

In one of the applications, that we are developing, we needed to implement the storing of 10 last user search requests.
Pay Attention to Method Names in Minitest::Unit

Pay Attention to Method Names in Minitest::Unit

Defining name, message, time or pass in a Minitest test case overrides Minitest::TestCase's own methods. What breaks, and what to call them instead.
Test Driven Thinking for Solving Common Ruby Pitfalls

Test Driven Thinking for Solving Common Ruby Pitfalls

Comrade! Our Great Leader requests a web-service for his Despotic Duties!
Improving Ruby on Rails Test Suite Performance by Disabling Animations

Improving Ruby on Rails Test Suite Performance by Disabling Animations

Optimize your Ruby on Rails testing strategy. Our consulting services show how to enhance test suite performance by disabling animations.
How To Name Variables And Methods In Ruby

How To Name Variables And Methods In Ruby

What’s in a name? By any other name would smell as sweet. Junior developers often struggle to choose good names for variables and methods they write.
How To Memoize False and Nil Values

How To Memoize False and Nil Values

Memoizing with ||= breaks quietly when a method legitimately returns false or nil. Use defined?(@_result) instead, and here is why that works.
Placeholder Image

How to Learn Ruby

Starting to learn a new programming language or a new framework every person faces a problem — what should I start studying with?
Cleaning Up Your Rails Views With View Objects

Cleaning Up Your Rails Views With View Objects

The main reason not to put the complex logic into your views is, of course, testing.

Reading this because something is going wrong?

A free code audit gives you a written assessment of your codebase in plain English.

Get a Free Code Audit

Rated 4.8/5 on Clutch · you keep the write-up either way