Ruby / Rails Inside
@rubyinside
735
subscribers
15
photos
2.51K
links
Daily Ruby / Ruby on Rails articles. Curated channel.
Faker::Hacker.say_something_smart
Suggest link/news
https://t.me/NoMethodError
Download Telegram
Join
Ruby / Rails Inside
735 subscribers
Ruby / Rails Inside
https://weblog.rubyonrails.org/2021/7/31/this-week-in-rails-favicons-invalidauthenticitytoken-message-gains-journey-optimizations-and-more/
Riding Rails
Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!
Hello, zzak here! Congrats on making it through another month and another week of Rails development.
Ruby / Rails Inside
https://sorbet.org/blog/2021/07/30/open-sourcing-sorbet-compiler
sorbet.org
Sorbet Compiler: An experimental, ahead-of-time compiler for Ruby · Sorbet
For the past year, the [Sorbet](https://sorbet.org/) team has been working on an experimental, ahead-of-time compiler for Ruby, powered by Sorbet and LLVM. Today we're sharing the source code for it. It lives alongside the existing code for Sorbet on GitHub…
Ruby / Rails Inside
https://www.honeybadger.io/blog/activerecord-update-counters-race-conditions/
Honeybadger Developer Blog
Using ActiveRecord's #update_counters to Prevent Race Conditions
Race conditions are arguably the most insidious kind of bug; they're intermittent, subtle, and most likely to occur in production. ActiveRecord's `update_counter` prov...
Ruby / Rails Inside
https://www.driftingruby.com/episodes/hotwire-turbo-replacing-rails-ujs
Drifting Ruby
Episode 307 - Hotwire Turbo Replacing Rails UJS | Drifting Ruby
In this episode, we look at some common functionality that we got with Rails UJS and what it looks like to reimplement these with Hotwire's Turbo and StimulusJS.
Ruby / Rails Inside
https://gorails.com/episodes/dynamic-select-fields-with-rails-hotwire
Gorails
Dynamic Select Fields in Rails with Hotwire | GoRails
Need to dynamically update fields when a user changes a select box? We can do that easily in Rails using Hotwire's Turbo Stream actions.
Ruby / Rails Inside
https://www.ruby-lang.org/en/news/2021/08/03/fukuoka-ruby-award-2022/
www.ruby-lang.org
2022 Fukuoka Ruby Award Competition - Entries to be judged by Matz
Ruby / Rails Inside
https://jemma.dev/blog/esoteric-ruby-in-memowise
Jemma Issroff
Esoteric Ruby in MemoWise
This post was co-written by Jacob Evelyn.
Ruby / Rails Inside
https://railsautoscale.com/heroku-logs-tools/
Railsautoscale
Power tools for analyzing your Heroku logs
Extract fields and perform aggregations on your Heroku logs. All in real-time, with beautiful, human-readable output.
Ruby / Rails Inside
https://blog.saeloun.com/2021/08/03/ruby-adds-integer-try-convert.html
Saeloun Blog
Ruby 3.1 adds try_convert method to Integer class for implicit conversions
try_convert for Integer will convert the object into an instance of the class via the implicit conversion method to_int and returns nil if no implicit conversion method is defined.
Ruby / Rails Inside
https://davidmles.medium.com/setting-up-rails-6-1-tailwind-css-2-2-with-jit-41a237ca22dc
Medium
Setting Up Rails 6.1 + Tailwind CSS 2.2 with JIT
I’m going to show you how to create a project with Rails 6.1 and its default Webpacker version (4.5), and configure Tailwind CSS with its…
Ruby / Rails Inside
https://blog.saeloun.com/2021/08/04/active-record-calculations-column-based-type-casting.html
Saeloun Blog
ActiveRecord::Calculations will now use column-based type casting
Rails 7 now harmonizes results of ActiveRecord::Calculations.average by applying column-based typecasting. Now, floating-point number columns will be aggregated as Float.
Ruby / Rails Inside
https://bibwild.wordpress.com/2021/08/04/logging-uri-query-params-with-lograge/
Bibliographic Wilderness
logging URI query params with lograge
The lograge gem for taming Rails logs by default will lot the path component of the URI, but leave out the query string/query params. For instance, perhaps you have a URL to your app /search?q=libr…
Ruby / Rails Inside
https://dev.to/st0012/a-sneak-peek-of-ruby-s-new-debugger-5caa
DEV Community
A Sneak Peek of Ruby's New Debugger!
ruby / debug Debugging...
Ruby / Rails Inside
https://blog.appsignal.com/2021/07/28/introduction-to-pattern-matching-in-ruby.html
AppSignal Blog
An Introduction to Pattern Matching in Ruby | AppSignal Blog
Find out about pattern matching in Ruby, what it does, and how it can help improve code readability.
Ruby / Rails Inside
https://weblog.rubyonrails.org/2021/8/8/this-week-in-rails-active-record-goodies-and-more/
Ruby on Rails
Active Record goodies and more!
Hi there, this is Greg, bringing you the latest new about the Rails framework.
Ruby / Rails Inside
https://www.honeybadger.io/blog/stoffle-interpreter-2/
Honeybadger Developer Blog
Building a Programming Language in Ruby: The Interpreter, Part 2
This article is the next in our series about building a toy programming language in Ruby. Alex Braha Stoll shows us how to implement the interpreter for function definitions, variable declarations, and more.
Ruby / Rails Inside
https://www.youtube.com/watch?v=0-80yi8DQiI
YouTube
Simple audit log with Event Sourcing - Ecommerce/Order
When your application is event-driven or uses event sourcing, the feature of audit logs is almost for free.
In this video I'm showing, how I'm adding this feature in the Arkency Ecommerce app
https://github.com/RailsEventStore/cqrs-es-sample-with-res
Ruby / Rails Inside
https://www.mikewilson.dev/posts/using-hotwire-with-rails-for-a-spa-like-experience/
Dev thoughts by Mike Wilson
Using Hotwire with Rails for a SPA like experience
Previously, we created a SPA-like experience using Stimulus and RxJs. Let’s recreate that using Turbo Frames, and add use Stimulus to add some polish, such as loading states and keeping track of the selected item.
Ruby / Rails Inside
https://www.colby.so/posts/instant-search-with-rails-6-and-hotwire
Colby.so
Instant search with Rails and Hotwire
Using Hotwire and Rails to build a search-as-you-type user experience
Ruby / Rails Inside
https://blog.saeloun.com/2021/08/10/logger-class-attr.html
Saeloun Blog
Rails 7 moves ActiveRecord::Base.logger to a class_attribute leading to a 7x speed improvement
Rails 7 utilized Ruby's cache for cvars to improve ActiveRecord::Base.logger performance 7x. Let's deep dive into this!
Ruby / Rails Inside
https://martinfowler.com/articles/gateway-pattern.html
martinfowler.com
Gateway
An object that encapsulates access to an external system or resource