---
title: "Rails gets a new generator for lightweight apps"
publication: "Ruby Weekly"
issue: 504
published_at: "2020-06-04"
canonical_url: "https://rubyweekly.com/issues/504"
---

Plus more of this week's Ruby news, views, and libraries.       

#504 — June 4, 2020 

[Read on the Web](https://rubyweekly.com/issues/504)   

🖤 It's [time to speak up](https://auth0.com/blog/its-time-to-speak-up/), [donate](https://pitchfork.com/thepitch/resources-in-the-fight-against-police-brutality-and-systemic-racism/) or even just [stream a fundraising video](https://www.youtube.com/watch?v=bCgLa25fDHM), because Black lives matter.  

Ruby Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1591272338/dwgyv4qqxarnd0zt9vuw.jpg)](https://railswithjason.simplecast.fm/nate-berkopec-2)  

▶[Discussing Rails Deployment and Hosting Options with Nate Berkopec](https://railswithjason.simplecast.fm/nate-berkopec-2) — I remember when the only Rails hosting option was to spin up your own server and use `mod_ruby` 😧 or FastCGI 😱 Nowadays, there’s a _lot_ more choice and this podcast runs through some of the options including deployment tooling. 

Rails with Jason podcast   

[`rails new --minimal`: A Minimal Rails App Skeleton Generator](https://github.com/rails/rails/pull/39282) — Remember when the Rails core team wanted to [hear about all your Rails WTFs in May?](https://weblog.rubyonrails.org/2020/5/7/A-May-of-WTFs/) One outcome of this is a just merged `--minimal` option for `rails new` to create the barest of Rails app skeletons.. no Active Job, no Spring, no Webpack, etc. 

Ruby on Rails   [![\](https://copm.s3.amazonaws.com/35ac2d01.png)](https://pganalyze.com/ebooks/optimizing-postgres-query-performance?utm_source=RubyWeeklyPrimary06042020) 

[We’ve Helped Customers Speed Up Postgres Queries by 1000x. Learn How in This Free eBook](https://pganalyze.com/ebooks/optimizing-postgres-query-performance?utm_source=RubyWeeklyPrimary06042020) — With pganalyze, companies like Atlassian are able to speed up their queries by orders of magnitude. In this eBook, we share our best practices for optimizing Postgres performance. 

pganalyze sponsor   

[RubyKaigi 2020 Now Cancelled](https://esa-pages.io/p/sharing/68/posts/1006/b15a58c675f5a69d06e5.html) — Not a huge surprise at this point, but this year's [RubyKaigi event](https://rubykaigi.org/2020/about/), which was set to take place in September, has now been cancelled as a result of the ongoing Coronavirus pandemic. The in-person event will return in 2021, and [planning for an online event](https://twitter.com/rubykaigi/status/1268472987218350081) of some sort is now underway. 

RubyKaigi   

[Writing Better Stimulus Controllers](https://boringrails.com/articles/better-stimulus-controllers/) — If you’re new to Stimulus (like me) this post will unveil some of the framework’s more advanced ideas, such as composible controllers. 

Matt Swanson   

[Geared Pagination 1.0: Paginate Active Record Sets at Variable Speeds](https://github.com/basecamp/geared_pagination) — Always nice to see code extracted from and used by Basecamp (since that’s where Rails started in the first place). The idea here is that you might want to have different quantities on different pages when paginating. 

Basecamp  

💻 Jobs  

[Announcing a 100% Remote Opportunity as a Sr. Ruby on Rails Dev](https://www.clevertech.biz/careers/ruby-on-rails-engineer) — We are passionate about giving devs the chance to do meaningful work by building transformational technology solutions. 

Clevertech   

[Find a Job Through Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-77583) — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started. 

Vettery  

ℹ️ _Interested in running a job listing in Ruby Weekly? There's [more info here](https://booking.cooperpress.com/jobs)_. 

📘 Articles & Tutorials  

[Why You Should Avoid Nested Single-Table Inheritance](https://t.co/doGf8Ogzem) — STI has always seemed like a _really_ sharp knife with no handle. Sure, you can use it, but you better be _very_ careful. 

Younes SERRAJ   

[Full Page Caching in Rails with Nginx and Redis](https://vitobotta.com/2020/06/01/full-page-caching-in-rails-with-nginx-and-redis/) — Do you have pages that do not require authentication or personalization? Then page caching might give you a major performance boost and let some pageviews skip Rails entirely. 

Vito Botta   

[Why Use Factory Bot Instead of Creating Test Data Manually?](https://www.codewithjason.com/why-use-factory-bot/) — What’s the advantage over creating test data manually? The answer is perhaps most easily explained with an example. 

Jason Swett   

[Need to Upgrade Rails? Download The Complete Guide to Upgrade Rails 🚀](https://www.fastruby.io/?utm_source=rubyweekly) 

FastRuby.io | Rails Upgrade Services sponsor   

[The Best Tool for the Automation Job](https://seanfelipe.github.io/automation/languages/ruby/java/javascript/simplicity/2020/05/20/automation-ruby.html) — A perspective on why Ruby is a fantastic language for automation. 

Sean Felipe   

[Configuring Webpacker for Rails 6 with Bootstrap, jQuery and Hot Module Reloading](https://t.co/LjNXokMJ7t) 

Ismael Boukhars   

▶[Using the RubyMine IDE with Docker Compose](https://blog.jetbrains.com/ruby/2020/06/video-tutorial-rubymine-and-docker-compose/) 

JetBrains  

🛠 Code and Tools  

[RubyMine 2020.2's Early Access Program (EAP) is Open](https://blog.jetbrains.com/ruby/2020/05/rubymine-2020-2-eap-is-open/) — RubyMine is a popular commercial Ruby IDE from JetBrains and they’ve opened up their temporarily free to use early access builds for the next version. 

JetBrains   

[Passenger 6.0.5 Released](https://blog.phusion.nl/2020/05/29/passenger-6-0-5/) — The latest version of the Passenger application server is out, complete with new packages for Ubuntu 20.04. 

Phusion   

[Announcing CockroachDB 20.1: Build Fast, and Build to Last](https://www.cockroachlabs.com/product/whats-new/?utm_campaign=cooperpress-2020-Q2&utm_source=rubyweekly&utm_medium=newsletter&utm_content=sponsored-link-20-1) — Meet the resilient, scalable SQL database with ActiveRecord compatibility. Try CockroachCloud free for 30 days → 

Cockroach Labs sponsor   

[SearchFlip: Full-Featured Elasticsearch Client with Chainable DSL](https://github.com/mrkamel/search_flip) — If you need Elasticsearch’s powerful brand of full text search in your Ruby apps, this is a great option. The latest release now lets you convert SearchFlip criterias to raw Elasticsearch queries for code reuse and there’s also instrumentation support. 

Benjamin Vetter   

[AlchemyCMS 4.6: A Rails CMS Engine](https://github.com/AlchemyCMS/alchemy_cms) — A CMS you can run standalone or bake into your existing Rails apps. There’s [a live demo](https://github.com/AlchemyCMS/alchemy_cms#-demo)too. 

magic labs GmbH   

[AttrJson: Serialized JSON-Hash-Backed Active Record Attributes](https://github.com/jrochkind/attr_json) — Focused on Postgres which has great native JSON type support. 

Jonathan Rochkind   

[ActiveRecord::PostgresEnum 1.0: Postgres's Enum Data Type Support for Active Record](https://github.com/bibendi/activerecord-postgres_enum) 

Misha Merkushin   

[cfndsl: A DSL for Generating AWS CloudFormation Templates](https://github.com/cfndsl/cfndsl) — One for AWS users only, and certainly makes a difference to the usual YAML or JSON approaches. 

Steven Jack   

[SassC: Use `libsass` with Ruby](https://github.com/sass/sassc-ruby) — Might be useful now that Sass no longer has an official Ruby based implementation. 

Sass   

[Piperator 1.2: Composable Pipelines for Enumerators](https://github.com/lautis/piperator) — Inspired by both Elixir’s pipe operator and Node.js streams. 

Ville Lautanala         

Curated by [Peter Cooper](https://twitter.com/peterc), [Glenn Goodrich](https://twitter.com/ruprict) and [Cooperpress](https://cooperpress.com/). 

[Change your email address](https://rubyweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
