When dealing with AR scopes, you can remove conditions, order, etc by using the unscope method. It is available on...

makandra dev

Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...

postgresql.org

PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...

Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...

speakerdeck.com

Web fonts are great. They are also be really bad for front-end performance because they block rendering. You may...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...

Some tasks in a web application are better not done live when a user request a page, but in the...

This is a guide on how to effectively use Git when working on a feature branch. It is designed to...

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...

github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

postgresonline.com

When working with PostgreSQL, you can use pgAdmin as a GUI. While you can do most things just like on...

To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

Method lookup Understand all the terms in How Ruby method lookup works, in particular: include extend singleton class

makandra Curriculum

Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...

We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...

When working on a bigger project, the easiest way to improve your work relation with a client or an external...

Many of our clients can't or don't want to design their user interfaces. In the absence of a...

makandra Curriculum

We've already learned how to integrate user-provided images uploads to our application in 205 basic file uploads and...

makandra Curriculum

Your MovieDB gained traction and is now a popular tool among cineasts. This comes with a downside: You noticed a...

For each movie in MovieDB, we want to track which other movie it was inspired by. For...

It smells. Rethink your code design. Code example with makandra/has_defaults: class Post < ActiveRecord::Base has_defaults tags: [] # field in db...

makandra Curriculum

Built-in matchers Get an overview of all the matchers that are built into RSpec. Play with some of...