Quantcast
Channel: EquiValent
Browsing all 112 articles
Browse latest View live
↧

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 Article


Spring 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 Article


Some debugging tips for Ruby on Rails

Several debugging tricks for Ruby and Ruby or Rails developers

View Article

Common AWS Elastic Beanstalk Docker issues and solutions.

Several debugging tricks for AWS Elastic Beanstalk runing Docker

View Article

Rendering Paperclip url via Elasticsearch without making calls to...

Rendering Paperclip attachements / urls vith Elasticsearch without ActiveRecord calls.

View Article


RSpec be_within matcher

RSpec 3 be_within matcher for comparing values in delta range

View Article

Ruby 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 Article

AWS ElasticBeanstalk deployment hooks

How to run post and pre deployment scripts on AWS Elastic Beanstalk running (not only) Docker environment

View Article


Pure 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 Article


Simple Authentication for one user in Rails

In this article we will bulid simple session based authentication for one user for Rails from scratch.

View Article

Various 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 Article

How to configure Route 53 to Cloudflare

How to properly set up Cloudflare with Route 53

View Article

Set 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 Article


Setting 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 Article

PATCH 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 Article


POST != 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 Article

Rails 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 Article


Expressive 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 Article

Github credentials in bundler

How to build Gemfile with private gems with bundler inside docker image

View Article

Policy 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
Browsing all 112 articles
Browse latest View live