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

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

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

github.com

When a method has keyword arguments, Ruby offers implicit conversion of a Hash argument into keyword arguments. This conversion is...

makandracards.com

Writing ruby methods that accept both optional and keyword arguments is dangerous and should be avoided. This confusing behavior will...

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

makandra dev
csstriggers.com

I figure we needed a definitive reference for what work is triggered by changing various CSS properties. It's something...

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

This is how you regain disk space from OpenStack instances if you are using kvm and qcow. If your instance...

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

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

makandra Curriculum

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

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

makandra dev
github.com

SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern, for...

andismith.com

If you need to upgrade code that uses the old jQuery methods bind, delegate, live, unbind and die, the attached...

httpbin.org

Some dozen generic API endpoints you can use to test how your HTTP client deals with various responses, e.g.

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

makandra dev
blog.getbootstrap.com

Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...

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

We are using the BEM pattern ("Block, Element, Modifier") to structure our CSS in all new projects. We try to...