Contributions

Article
Data input processes may be subject to different business rules than the data it ultimately correlates to in your system. You can still use familiar tools to apply those constraints and validations that only apply in this one case.

Learn how to improve the robustness of CSV file ingestion using ActiveModel::Validations in this article.
Article
Using non-RESTful routes in your Rails application can lead to a lot of undue chaos and uncertainty. Don’t be afraid to break away from conventional patterns of mapping all of your controllers to models just for the sake of doing it when there are more expressive and straightforward ways to divvy up the responsibilities of your controllers.
Article
The RailsConf talk sessions have been released on YouTube, thanks to RubyCentral.

If you'd like some suggestions on what to watch, I've got you covered.
Article
A number of ActiveRecord methods take a block to initialize attributes. This post explores how to do that and how using it compares to a few other methods of setting attributes on an object.
Article
In our last post, we encountered some inconsistent behavior between Rails 5 and Rails 6. Now that we've identified the inconsistency, we'll explain why it's happening.
Article
Why is our Rails app returning different HTTP status codes in different versions of Rails? Learn some tips and tricks for navigating a large ruby code base in this post.
Article
Five ways to run EXPLAIN on your Rails database queries
Article
Some dependencies, like nokogiri, ship with multiple libraries for different architectures. If you cache your gems, you may need to cache multiple platforms, because your development team is spread across various platforms or you deploy to a different platform. We discuss to do that in this post.
Article
In a previous post, we built an amplifier. Now, we'll learn to play the guitar with ruby code.
Article
Sonic Pi is a fun and approachable way to make music with code. For a slight twist on using it, you can read about how I incorporated it into an existing ruby code base.
Article
Inheritance sets up a relationship or a taxonomy between classes to allow for code reuse. It is both a commonly reached for and commonly derided tool which has its place, but must be wielded with care. Here we'll use inheritance to write new songs for our concert setlist.
Article
Any application will be comprised of multiple components - in Object-Oriented languages, typically classes. Sometimes these classes even work together! External users of one of these classes may not know that behind the scenes there are more classes working together, nor do they care. The public API does what they need it to, and anything else is an implementation detail. However, keeping the specialization of these different classes apart, but using them together, is beneficial.
Article
Duck typing is commonly used by Rubyists and other users of dynamic languages. We'll demonstrate duck typing by helping a concert lighting team set up the lighting for a band.
Article
Dependency injection is a fancy term. It sounds intimidating. The purpose of this post is to explain what dependency injection is, how to use it, and why it can be beneficial.