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://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
Ruby / Rails Inside
https://opalrb.com/blog/2021/08/09/opal-1-2/
Ruby / Rails Inside
https://blog.appsignal.com/2021/08/11/ruby-hidden-gems-bullet-and-how-it-integrates-with-appsignal.html
AppSignal Blog
Ruby's Hidden Gems: Bullet | AppSignal Blog
Let's dive into Bullet and find out how it can help you identify some database-related problems.
Ruby / Rails Inside
https://bhserna.com/guide-for-preloading-associations-in-rails.html
Bhserna
A guide for preloading associations in rails
Maybe you are already familiar with includes or preload, but you know
that a lot of the time you will need more than just preload(:comments).
It is common to have complex nested associations, scopes that you need or want
to reuse, places where preloading…
Ruby / Rails Inside
https://github.blog/2021-08-11-githubs-engineering-team-moved-codespaces/
The GitHub Blog
GitHub’s Engineering Team has moved to Codespaces
Over the past months, we’ve left our macOS model behind and moved to Codespaces for the majority of GitHub.com development.
Ruby / Rails Inside
https://noelrappin.com/blog/2021/07/an-object-oriented-example/
Noelrappin
An Object-Oriented Example – Noel Rappin Writes Here
I just write here
Ruby / Rails Inside
https://kubernetes-rails.com/
Ruby / Rails Inside
https://blog.arkency.com/audit-log-with-event-sourcing/
Arkency Blog
Audit log with event sourcing
Hi, we're Arkency and it's our blog with meaty content.
Ruby / Rails Inside
https://nauman.medium.com/my-rails-project-default-setup-a577677703d2
Medium
Rails 6 with Webpacker 6, Tailwind 2 with JIT, Postcss 8 and some default setup
It is always nice to follow a detailed guide and steps when building new rails apps. Below is a bit of guidance and step-by-step…
Ruby / Rails Inside
https://www.honeybadger.io/blog/building-app-rails-vue-vuex/
Honeybadger Developer Blog
Building A Full-Stack Application With Vue, Vuex and Rails
Vue is a popular front-end that is especially useful for Rails developers since it was designed to be incrementally adoptable. That means you can use Vue for parts of your UI without having to rebuild everything from scratch. In this article, John Emmanual…
Ruby / Rails Inside
https://www.youtube.com/watch?v=PtxZvFnL2i0
YouTube
Alpha preview: Modern JavaScript in Rails 7 without Webpack
Modern web apps without JavaScript bundling or transpiling: https://world.hey.com/dhh/modern-web-apps-without-javascript-bundling-or-transpiling-a20f2755
Rails 7 minus Webpack plus importmap PR: https://github.com/rails/rails/pull/42999
Ruby / Rails Inside
https://pawelurbanek.com/asdf-docker-development
Rails, PostgreSQL Performance Audit and Tuning Consultant for Hire
asdf and Docker for Managing Local Development Dependencies
Have you ever updated a database for one project just to discover that you accidentally broke another? Ensuring the isolation between your local dependencies can save you hours of rolling back a breaking update or resolving intertwined dependencies. In this…
Ruby / Rails Inside
https://blog.saeloun.com/2021/08/17/active-storage-preview-error.html
Saeloun Blog
ActiveStorage now raises a PreviewError when previews fail to generate
Before this update, a failed preview generation would result in a 0-byte file being created – leading to disastrous outcomes in the views.
Ruby / Rails Inside
https://evilmartians.com/chronicles/one-row-many-threads-how-to-avoid-database-duplicates-in-rails-applications
evilmartians.com
One row, many threads: How to avoid database duplicates in Rails applications—Martian Chronicles, Evil Martians’ team blog
A primer on avoiding duplicates in database tables that back your multi-threaded Rails applications with runnable examples
Ruby / Rails Inside
https://world.hey.com/dhh/modern-web-apps-without-javascript-bundling-or-transpiling-a20f2755
Hey
Modern web apps without JavaScript bundling or transpiling
I didn't much care for vanilla JavaScript prior to ES6. Through all of the 2000s, I chased different approaches to avoid writing too much of it. First there was RJS (Ruby-to-JavaScript). Then there was CoffeeScript. Both transpiling approaches that turned…
Ruby / Rails Inside
https://www.youtube.com/watch?v=MJSZ3WcgHeE
YouTube
Debugging Rails
Sometimes (read: always) you will need to debug your Ruby on Rails application. In this video I cover some of the gems and methods you can use to do that!
00:00 Introduction
01:35 Logging & Customer Loggers
07:58 Debug on webpage
11:40 Marginalia Gem
16:40…
Ruby / Rails Inside
https://kyrofa.com/posts/demystifying-rails-autoloading/
Kyrofa
Demystifying Rails autoloading
Also known as "why do I need to require stuff sometimes, and not other times?"