Ruby on Rails | rubyclub
1.53K subscribers
214 photos
1 video
263 links
Software Writer @yegorckv
Download Telegram
📺 NEW Rails 8 Authentication Generator

Recently DHH merged a PR that adds an authentication generator to Rails.

Currently the generator allows email-password log in for existing users. It does not tackle registrations.
Please open Telegram to view this post
VIEW IN TELEGRAM
💻 Don't want to use an empty `rescue` to silence an error?

Use Rails' Kernel#suppress instead!
Please open Telegram to view this post
VIEW IN TELEGRAM
RailsConf 2024 - Progressive Web Apps with Ruby on Rails by Avi Flombaum

Progressive Web Apps (PWAs) have emerged as a solution for offering the seamless experience of native apps combined with the reach and accessibility of the web. This talk will dive into building an offline-first RSS feed reader that leverages the full potential of PWAs such as Service Workers, Background Sync,

We'll explore how to register, install, and activate a service worker in a Rails application.
💻 Hash value omission - an introduction and some examples

The hash literal value omission was added to Ruby version 3.1 in 2021. This is the feature proposal that describes the feature request and the one that was implemented
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
💻 Attractor

A code complexity metrics visualization and exploration tool for Ruby and JavaScript. If you are looking for a managed solution to observe your code's quality, check out UseAttractor
Please open Telegram to view this post
VIEW IN TELEGRAM
📺 "Refactoring Volatile Views into Cohesive Components"

It's easy for models to grow unwieldy, accumulating methods, attributes, and responsibilities. But views can be even worse. Let's refactor the mess into clean, cohesive components with ViewComponent.
Please open Telegram to view this post
VIEW IN TELEGRAM
👩‍💻 Background Jobs in Rails with SolidQueue

In this episode we will setup SolidQueue in our Rails app. So that we can use our database as a job queue for our background workers
Please open Telegram to view this post
VIEW IN TELEGRAM
DHH about RailsWorld

I owe the trajectory of my entire career to Matz. Couldn't be happier to have him at Rails World for a chat with Tobi and I. Optimize for programmer happiness!


Special #Railsworld announcement: @yukihiro_matz and @dhh will share the stage for the very first time for a fireside chat about #Ruby, #Rails and all things #opensource. This special conversation will be moderated and hosted by Shopify founder and early Rails Core member @tobi.
📮 ViewComponent Crash Course with Ruby on Rails

ViewComponent is a powerful gem that allows you to create reusable, testable, and encapsulated view components in Ruby on Rails applications.

ViewComponent was developed by the GitHub team and has since been adopted by many developers looking for more structure than the default partials and helpers provided by Ruby on Rails. This crash course will review ViewComponent's use case and explore how it might fit your next Rails app.
Please open Telegram to view this post
VIEW IN TELEGRAM
📺 Getting Started with Turbo Native in Ruby on Rails | SupeRails #184

Let's learn to build mobile apps with Hotwire using Turbo Native
Please open Telegram to view this post
VIEW IN TELEGRAM
📮 When to Use call, erb_template, or html.erb in Rails ViewComponents?

ViewComponent has multiple methods to render ERB and HTML. Initially, when ViewComponent was released, there were two options:

a separate html.erb file, and;
a call method.
Please open Telegram to view this post
VIEW IN TELEGRAM
Explaining OOP in pictures

Ivan Nemytchenko

I accidentally invented this approach while teaching OOP in Ruby programming language to my students.

Their task was to come up with a list of components of a smart kettle with some safety features. It was their 2nd week of learning programming, and some students were struggling with this task, as it was too abstract to them.
💎 [EN] Ruby Mixology 101: adding shots of PHP, Elixir, and more / Vladimir Dementyev @palkan_tula

📺 https://youtu.be/tfzAZiGGHvM?si=lMAIfPBnTR7INKK2
Please open Telegram to view this post
VIEW IN TELEGRAM
💻 Delegated Types - Rails in Focus

In the first video of this new series, we're diving into a Rails feature that can transform how you manage your app's database relationships - Delegated Types. Introduced in Rails 6.1, this feature offers a new approach to multi-table inheritance, providing a more efficient and type-safe alternative to Single Table Inheritance (STI) and classic Polymorphism
Please open Telegram to view this post
VIEW IN TELEGRAM
💻 Hello Hotwire - Free Course - Full Version

This is the FREE version of my recently released course, Hello Hotwire. You can get the full course and premium content at hellohotwire.com
Please open Telegram to view this post
VIEW IN TELEGRAM
👩‍💻 Ruby 3.3.5 Released — Not a big release (you’ll be waiting till Christmas Day for that!) but a scheduled minor bug fix release covering a variety of issues. Based on the current schedule, 3.3.6 should land in early November.
Please open Telegram to view this post
VIEW IN TELEGRAM
💻 Rails 8 will simplify PWA development by generating essential PWA scaffolding by default.

In his RailsWorld talk, Emmanuel will cover PWA basics, the service worker lifecycle, offline strategies via background sync, and the CacheStorage API for cross-device performance. Come join his talk to find out how it all works:

https://rubyonrails.org/world/2024/day-1/emmanuel-hayford
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👩‍💻 Tired of manually styling table rows?

Use ActionView's cycle to alternate background colors automatically.
Please open Telegram to view this post
VIEW IN TELEGRAM