Rails Chronicles

Subscribe
Archives
March 1, 2021

The Monthly Monitor: Go beyond yourself rather than beyond others.

Hey Friends,

How is it going? Hope you all are doing fine in this crazy times and taking care of yourself.

Let have a quick recap of this month. Firstly, crossed a huge milestone in my career. Made it to the top 100 contributors in Ruby on Rails 🎉.

Dev joke

Married life of a developer

#wife {
  right: 100%;
  margin: 0;
}

source

Ruby on Rails: Learn to Build a Multitenancy SaaS app

Looking to learn and build a Multitenancy SaaS application. Check out the awesome course created by Yaroslav Shmarov. You can also avail 30% discount on this course. Here is the course link.

My blogs

  • [Rails] Setup OmniAuth Facebook
  • Two ways to add Font Awesome to project:
    • [Rails] Setup Font Awesome using rubygems
    • [Rails] Setup Font Awesome using Yarn

Reading/watching list

  • Ruby on Rails does a lot of things for you and if you ever wondered how is session managed or what the other options. Read How Rails Sessions Work
  • Some developer rant. BTW SQL is awesome. 10 Things I Hate About SQL
  • An approach to refactor your React components using custom hooks. Extract React Hook Refactoring.
  • Upgrading your Rails version and wanna check how much changes are needed to support higher Rails version. Try: railsdiff.org

Rails changelog

  • Rails 7.0 modernize scaffold generator
  • Rails 7.0 adds ActiveRecord::Result.empty
  • Rails 7.0 adds ability to apply scoping to all_queries
  • Rails 7.0 adds ActiveRecord::Relation#without
  • Rails 7.0 add ActionController::Live::Buffer#writeln to write a line to the stream with a newline included
  • Rails 7.0 adds ActiveStorage::Streaming module to access blob stream in controller
  • Rails make destroy async transactional
  • Rails doesn't log rescuable exceptions defined with rescue_from
  • Rails Action Cable prevents thundering herd
  • Rails 7.0 adds Enumerable#in_order_of to put an Enumerable in a certain order by a key
  • Rails 7.0 adds ActionController::Live#send_stream
  • Rails 7.0 will strip whitespace in disallow_raw_sql!
  • All Rails 7.0 new projects would use main as default GitHub branch
  • Rails 7.0 will allow Adapter#select_all to be performed asynchronously from a background thread pool
  • Rails 7.0 will better handle PostgreSQL timestamp with time zone columns

My Open-source libraries/contributions

  • Rails contributions

    • Co-authored with DHH in PR: Modernize scaffold generator
    • Action Text rich text area tag should use to_trix_html value
    • Match the show action case in the new(updated) scaffold generator
    • Fixes a typo and some cosmetic changes for migration documentation [ci skip]
    • Fixes typo in the async query executor documentation added in #41495 [ci skip]
  • Boring Generator contributions

    • Adds Google Oauth Generator
    • Adds Twilio install generator
    • Adds Twitter Oauth install generator
    • Adds Ahoy install generator

Reading/Watching/Review

  • Started watching Itaewon Class.
  • Started reading Secrets of Sand Hill Road: Venture Capital and How to Get It. Done with couple of chapters but book seems very nice to anyone looking to learn Venture Capital.

Happy coding folks. You can reach out to me twitter for anything and I’ll be happy to chat. Don’t hesitate.

Don't miss what's next. Subscribe to Rails Chronicles:
This email brought to you by Buttondown, the easiest way to start and grow your newsletter.