Rails Chronicles

Subscribe
Archives
July 3, 2021

The Monthly Monitor: Be an encourager, the world has enough critics already.

Hi Friends,

I hope everyone had a great month. Mine was awesome and jampacked with work. Bit late to sending the newsletter out but this would be the 12th newsletter since we started.

Completed some career goals this month. I was invited to Rails contributor Basecamp(this is a big deal for me) and made total of 100 commits to Rails.

Dev Joke

220-measure-twice-cut-once.png

source

Reading/watching list

  • You can now prefer to use @rails/request.js instead of Axios to make API request from frontend. It makes sure headers required by Rails application are added in the API call.
  • The Plan for React 18
  • React 18 Alpha is out! Now what? React 18 has some awesome new features and you can be part of React 18 Alpha testing as well.
  • Learn How To Use and Not Use State in React.
  • Are you having trouble understanding some of the key concepts of React? Understand the concepts from team like I'm five year old
  • Some new exciting features in ES2021.

Podcast

  • Speedy Performance with Nate Berkopec

Rails changelog

  • Rails 7 ActiveRecord::Relation#destroy_all perform its work in batches
  • Rails 7 adds Model.update!
  • Rails 7 adds ActiveRecord::Base#previously_persisted?
  • Rails 7 Active Storage config replace_on_assign_to_many is deprecated
  • Rails 7 allows parameters sent to ffmpeg to be configurable
  • Rails 7 adds audio analyzer to Active Storage
  • Rails 7 adds vips image analyzer to Active Storage
  • Rails 7 add metadata value for presence of audio channel in video blobs
  • Rails 7 adds metadata value for presence of video channel in video blobs
  • Rails 7 deprecate usage of Active Storage purge and purge_later from the association extension
  • Rails 7 allows expires_in for ActiveStorage signed ids
  • Rails 7 adds ActiveModel::AttributeSet#values_for_database
  • Rails 7 fixes ActiveStorage has_many_attached when record is not persisted
  • Rails 7 adds support for if_exists/if_not_exists on remove_foreign_key/add_foreign_key
  • Rails 7 drops support for the SERVER_ADDR header
  • Rails formatter ISO8601 to avoid scientific notation
  • Rails strict loading cascade down to middle records
  • Rails allow to detach an attachment when record is not persisted
  • Active Storage migration that are copied by Rails Active Storage installer doesn't account for primary_key_type set in config. Rails 7 ensures primary_key_type used in Active Storage migrations
  • Rails multi-db fixes migration ordering across databases

My blogs

  • Something I learned this month - Stimulus Naming Conventions - Rails rendering partial or block with layout - Hotwire turbo_frame_tag doesn't work within table HTML tag - Rails Generator Handles Action Text Fields - Rails Generator Handles Active Storage Attachment Fields

My Open-source libraries/contributions

  • Rails Contribution - Ensure Action Text migration use config set primary_key_type - Document Action Text rich_text field attribute [ci skip] - Document Active Storage attachment and attachments field generators [ci skip] - Update Active Storage guide about num migration added in setup - Document ActiveStorage::Attached::One#blank? [ci skip]

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.