A technique to vastly reduce the number of join model records that need to be stored in the database.
Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after...
Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...
“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...
There is no reason to leave trailing whitespace characters in your project's files, so don't add any.
If you have an html_safe string, you won't be able to call gsub with a block and match...
Every now and then, Java is subject to security issues where code can break out of Java's sandbox and...
In a nutshell: Use git rebase --onto target-branch source-commit target-branch means "branch you want to be based...
The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...
When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...
If you are using VNC to run Selenium tests, it may be hard to see what's going on since...
Quick introduction to git internals for people who are not scared by words like Directed Acyclic Graph. The linked page...
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
Developers these days are spoiled with choice when it comes to selecting an MV* framework for structuring and organizing JavaScript...
Let's say you need to revert a migration that happened a while back. You'd create a new migration...
RubyMine offers you to exclude directories from search, meaning faster search results and less "noise" in the list of result...
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
This is a very general introduction to MV* Javascript frameworks. This card won't tell you anything new if you...
When using Rails to truncate strings, you may end up with strings that are still too long for their container...
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
Removing features and merging those changes back can be painful. Here is how it worked for me.\
Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...
Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...
When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...