You can use the content CSS attribute to set an element's content -- which is especially useful for the :before...

Defining one callback several times in the same class behaves different in ActiveRecord and ResourceController. While in ActiveRecord the callbacks...

Consul 0.6.1+ gives you a way to dynamically access and query powers for a given name, model class or record...

validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

Calling bundle update (without arguments) updates all your gems at once. Given that many gems don't care about stable...

kernel.org

If you say git stash, your stashed changes will be identified with an automatically generated message: $ git stash

When calling a scope like current_power.user?(user), Consul will no longer trigger a query if the users power selects all...

The way MySQL's FULLTEXT tokenizer splits text into word tokens might not always be what you need. E.g. it...

josh.github.io

li.active a:link Example output (specificity): | 0 | 2 | 2 | See also: https://www.codecaptain.io/tools/css-specificity-calculator

makandra dev
github.com

Axlsx is an incredible gem to generate "Office Open XML" spreadsheet files (XLSX). Does not break on large spreadsheets and...

TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...

When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...

ActiveRecord has a feature called counter caching where the containing record in a has_many relationship caches the...

Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...

If you can now longer hear or record sounds after upgrading Ubuntu, you probably need to re-tell Ubuntu which...

In Rails 2, when calling instance_eval or instance_exec on a scope, the scope will fetch its records from...

ebobby.org

A technique to vastly reduce the number of join model records that need to be stored in the database.

If you get a stacktrace complaining about uninitialized constant MysqlCompat::MysqlRes a system library update might broke your gem.

Since I use this a lot in my daily work and there were no scripts working properly for me, I...

When you have two models in a has_many, has_one or belongs_to association, the :inverse_of option in...

Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...

Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...

In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...

If you require your Rails models manually, pay attention to the path you use. Unless you have...