Different ways how to do contextual Rails validations
Ruby on Rails has a decent way how to ensure that invalid params won't end up in DB. Problem with Rails Validators is that they are bound to a class rather than Instance object. In this article we will...
View ArticleSpring Cleaning for WebDevelopers
After while our machine, Github, server, ... gets piled with old unneeded stuff, here are sme tricks & commands I use for Spring Cleaning in my machine
View ArticleSome debugging tips for Ruby on Rails
Several debugging tricks for Ruby and Ruby or Rails developers
View ArticleCommon AWS Elastic Beanstalk Docker issues and solutions.
Several debugging tricks for AWS Elastic Beanstalk runing Docker
View ArticleRendering Paperclip url via Elasticsearch without making calls to...
Rendering Paperclip attachements / urls vith Elasticsearch without ActiveRecord calls.
View ArticleRuby Enumerable, Enumerator, Lazy and domain specific collection objects
Ruby has couple of nifty tricks up its sleeves to deal with collection objects so that they map your domain. In this article we will look on Enumerator, Lazy Enumerator and Enumerable and how to...
View ArticleAWS ElasticBeanstalk deployment hooks
How to run post and pre deployment scripts on AWS Elastic Beanstalk running (not only) Docker environment
View ArticlePure RSpec JSON API testing
In Ruby on Rails there are many tools how to test your JSON API, but you don't necessary need to install any gems. RSpec provide really decent tool set for many scenarios including APIs
View ArticleSimple Authentication for one user in Rails
In this article we will bulid simple session based authentication for one user for Rails from scratch.
View ArticleVarious CORS issues related (not only to) Ruby on Rails
CORS may be bit tricky (not only) for Ruby on Rails application. In this article we will have a look on some problems and solutions I've dealt with.
View ArticleHow to configure Route 53 to Cloudflare
How to properly set up Cloudflare with Route 53
View ArticleSet up AWS Elastic Beanstalk
In this article I will show you how to Set up AWS Elastic Beanstalk Docker environment, RDS, ElasticCache and Security Groups for demo Ruby on Rails application.
View ArticleSetting up Ubuntu 16.04 for Ruby on Rails app (Cheatsheet)
Quick cheatsheet how to install various technologies for Ruby on Rails application under fresh Ubuntu 16.04 machine
View ArticlePATCH vs PUT and the PATCH JSON syntax war
There is still lot of confusion on PUT vs PATCH HTTP methods and the JSON syntax. In this article I will try to explain the difference and present pragmatic solution to PATCH syntax problems.
View ArticlePOST != Create and PUT != UpdatePOST
Ruby on Rails developers tend to think that HTTP method POST represents Create and PUT means Update. Well, not really. The CRUD mapping of modern web-frameworks just limits the scope of this HTTP...
View ArticleRails ActiveRecord Relation (Arel), composition and Query Objects
Ruby on Rails ActiveRecord::Relation (or Arel) is really handy tool to create complex SQL calls. In this article I'll show you several tricks I've came across over the years and show you how to combine...
View ArticleExpressive tests with RSpec - part 1: Describe your tests properly
Lot of time developers just write the logical evaluation for the test but don't quite express their intention. RSpec is really expressive testing library. This article is first article in my article...
View ArticleGithub credentials in bundler
How to build Gemfile with private gems with bundler inside docker image
View ArticlePolicy Objects in Ruby on Rails
Authorization (unlike Authentication) is really complex topic that may go wrong when using generic solutions. In this article I will show you how to write Policy Objects specific to your business logic.
View Article