Intuo Engineering
The innovation and work by Intuo Engineers
Eagerloading Polymorphic Associations in Rails
Eagerloading an association in ActiveRecord is a very handy feature that helps to cut down on the amount queries made to a database and successfully avoid N + 1 queries. When using ActiveRecord as an ORM, it’s also very easy to load nested associations, e.g.
Setting up Encryption at REST with Amazon RDS and PostgreSQL
In order to make sure our customer data is as safe as possible, we decided to implement encryption at rest. Although we tried a few different approaches, we finally settled on encrypting the database file system and everything related to it. As we are already using an Amazon PostgreSQL instance,...
Setting up Cucumber.js, WebDriverIO and Chai.js to test your Single-Page Applications
Testing JavaScript applications with Cucumber and Selenium WebDriver is very common when the API is written in Rails. After all, you write it in Ruby and have direct access to the database, stubs on global classes and other goodies. But you might want to stop and think about that decision....
Mocking File Inputs in JavaScript and Ember.js
Testing integral parts of web browsers that rely on user interaction is always tricky and often requires a cumbersome implementation. File inputs are no exception. Consider the following JavaScript snippet that is triggered when we add a file to an input field.