Tutorials

How to use AWS Cloud9 for Ruby on Rails development (Example) | GoRails
Ever wanted an editor and Rails environment you can use anywhere? Cloud9 is the perfect option for this and can run on an EC2 instance in your AWS.AWS Cloud9 is an in-browser text editor you can use for Ruby on Rails development. It installs on a ...

Reverse Coverage: Find which tests execute which lines of code
Occasionally it could be useful to discover how is tested/executed/documented (in the way of tests as Living Documentation) a line (or set of lines) of an application.For example, when you create a part that stands over a product (like a Rails Eng...


MIR: A lightweight JIT compiler project - Red Hat Developer
For the past three years, I’ve been participating in adding just-in-time compilation (JIT) to CRuby. Now, CRuby has the method-based just-in-time compiler (MJIT), which improves performance for non-input/output-bound programs.The most popular appr...

URI.escape is obsolete. Percent-encoding your query string
Ruby 2.7.0 shows a warning when invoking URI.escape or its alias, URI.encode. It might look like a fresh deprecation, but the fact is, these methods have been marked as obsolete for… over 10 years now! If you’re wondering how come you’ve never enc...


RSpec/Capybara integration tests: the ultimate guide
When I started learning about Rails testing and RSpec I discovered that there are many different kinds of tests. I encountered terms like “model spec”, “controller spec”, “view spec”, “request spec”, “route spec”, “feature spec”, and more. I asked...


Where to start with introducing TDD to a new Rails app
A Code With Jason reader recently wrote me with the following question:How do I introduce TDD into a new Rails app? Where do I start? I am deeply knowledgable on RSpec and use it a lot. I am not sure how to get started with testing in Rails. When ...