Shoulda matchers depricated. Now what ?
Thoughtbots team behind gem shoulda_matches have decide to depricate several matchers in version 2.0. Lot of people still find them useful. Read more to see alternatives.
View ArticleInstalling Nginx 1.4.4 from source on Ubuntu 12.04 (Precise)
Step by step manual to install NginX on Ubuntu 12.04 (Precise) from source with SNI support without headache.
View ArticleTemporary enable dalli store in RSpec specs
Ideally when you're running tests you don't want to cache anything, but there are some cases that you need to make sure stuff is working with caching enabled. This article will show you how to...
View ArticleJenkins CI for Rails 4, RSpec, Cucumber, Selenium
Jenkins CI to test your Rails app with RSpec Cucumber (Spinach), Selenium and also doing tested deployments.
View ArticleRender image with Rails controller
How to stream images with Ruby on Rails controller so that you can fake that images are located on your server.
View ArticleRSpec performance improvements with before allExample
Improve your test-suite performance by properly using before(:all), after(:all) RSpec hooks so that you trigger less database queries.
View ArticleMail interceptor for different Rails environments
Rails mail interceptor to prevent sending emails from being sent for different environments using custom environment configuration options.
View ArticleTranslating locales for Rails model errors
Proper way how to translate Rails validation messages
View ArticleRSpec matchers in db:seed file
There is overall confidence that seed files (rake db:seed) don't need any additional testing. But in this article I will show you easy way how to add simple layer of tests during the seed process.
View ArticleJSON array in html element data attribute
How to pass JSON to HTML element data attribute
View ArticleRuby Ancestors, Descendants and other annoying relatives
In Ruby is easy to pull "ancestor" classes of a class. However once developer want to work with "descendants" he may find it's not that easy. This article is providing a way how to look at Ruby...
View Articleconfig.force_ssl is different than controller force_ssl
Rails provide option force_ssl as a global seting and as a controller method. They act the same way in terms of redirect to https but have a huge security affect on cookie security.
View Articlecron rbenv bundle exec rake task
Ruby provide so many easy ways how to create a scheduled job (Whenever gem, Daemons gem, ...) but what if you want to configure something really simple with plain cron along rbenv?
View ArticleScissors Rule in coding
In coding / software-developing world a rule called Scissors Rule exist several years. Funny enough I couldn't google single article about it :) . In this article I'm summarizing it's base principles
View ArticleBuild Docker images on your machine or in the cloud ?
Docker images can be build either on local computer or via hosted build servers. Although we all are fans of cloud automation, should we really let hosted solutions build the images for us? Isn't that...
View ArticleChromebook for Web Developers
You don't need expensive laptop to be a web-developer or sys-admin guy, all you need is an attitude to get things done. In this article I'll give you my experience on developing commercial...
View ArticleSetting up simple Wordpress deployment with CodeShip to AWS EC2
This article will show you a simple way how to set up deployment of a WordPress website via CodeShip
View ArticleErgonomics and faster typing practices for Web Developers
Ten Finger Typing Technique, Dvorak layout, Split Keyboards and Vim. All this are Techniques and Life Hacks that can improve your productivity and development experience.
View ArticleRails redirects to wrong host (NginX HTTP_X_FORWARDED_HOST)
Problem I had where NginX was passing wrong HTTP_X_FORWARDED_HOST to Rails and me spend several hours debugging.
View Article