Get Started with Hotwire in Your Ruby on Rails App
Hotwire is a hot topic at the moment for every Rails developer. If you work with Rails, there is a good chance you have already heard a lot about it.
Hotwire is a completely new way of adding interactivity to your app with very few lines of code, and it works blazing fast by transmitting HTML over the wire. That means you can keep your hands clean from most Single Page Applications (SPA) frameworks. You can also keep your rendering logic centralized on the server, while still maintaining quick page load times and interactivity.
In this post, we'll look at the main components of Hotwire and how to use it in your Rails app. But first: what is Hotwire and why should you use it?
https://blog.appsignal.com/2022/07/06/get-started-with-hotwire-in-your-ruby-on-rails-app.html
Hotwire is a hot topic at the moment for every Rails developer. If you work with Rails, there is a good chance you have already heard a lot about it.
Hotwire is a completely new way of adding interactivity to your app with very few lines of code, and it works blazing fast by transmitting HTML over the wire. That means you can keep your hands clean from most Single Page Applications (SPA) frameworks. You can also keep your rendering logic centralized on the server, while still maintaining quick page load times and interactivity.
In this post, we'll look at the main components of Hotwire and how to use it in your Rails app. But first: what is Hotwire and why should you use it?
https://blog.appsignal.com/2022/07/06/get-started-with-hotwire-in-your-ruby-on-rails-app.html
🔥3
Tutorial: Create a No-Code Style Native iOS Screen Builder With A Ruby on Rails Backend
Let’s build an iOS application with a Ruby on Rails backend that allows users to create and manage onboarding screens. Then lets inject the data for those screens as JSON into an iOS app and render the blocks as native SwiftUI Code.
https://davidmoreen.com/tutorial-create-a-no-code-style-native-ios-screen-builder-with-a-ruby-on-rails-backend/
Let’s build an iOS application with a Ruby on Rails backend that allows users to create and manage onboarding screens. Then lets inject the data for those screens as JSON into an iOS app and render the blocks as native SwiftUI Code.
https://davidmoreen.com/tutorial-create-a-no-code-style-native-ios-screen-builder-with-a-ruby-on-rails-backend/
David Moreen
How I created a No-Code Style Native iOS Screen Builder With A Ruby on Rails Backend - David Moreen
Let's build an iOS application with a Ruby on Rails backend that allows users to create and manage onboarding screens. Then lets inject the data for those
🔥2
Why Ruby on Rails Needs Components
I previously wrote a bit about What Rails Components and why don't we have them are at a very high level. Rails Components are shareable, encapsulated, and interoperable pieces of functionality that can be dropped into your Rails application. They are essentially the equivalent of React Components, styled, functional, interactive pieces of frontend that you can just drop into your application and they work.
https://code.avi.nyc/why-ruby-on-rails-needs-components
I previously wrote a bit about What Rails Components and why don't we have them are at a very high level. Rails Components are shareable, encapsulated, and interoperable pieces of functionality that can be dropped into your Rails application. They are essentially the equivalent of React Components, styled, functional, interactive pieces of frontend that you can just drop into your application and they work.
https://code.avi.nyc/why-ruby-on-rails-needs-components
👍3
Ruby on Rails Background Jobs with Sidekiq
Using Sidekiq for background jobs is a great way to scale and grow your app. This book will give you a solid, practical foundation for creating resilient, well-tested, self-healing code that uses background jobs. You’ll be able to simulate real-world failure modes and learn how to write idempotent code that can be safely run with Sidekiq.
https://pragprog.com/titles/dcsidekiq/ruby-on-rails-background-jobs-with-sidekiq/
Using Sidekiq for background jobs is a great way to scale and grow your app. This book will give you a solid, practical foundation for creating resilient, well-tested, self-healing code that uses background jobs. You’ll be able to simulate real-world failure modes and learn how to write idempotent code that can be safely run with Sidekiq.
https://pragprog.com/titles/dcsidekiq/ruby-on-rails-background-jobs-with-sidekiq/
👏4
Building an ActiveStorage and S3-Powered Direct Drag-Drop Uploader
A fantastic series of posts walking through the building of an elegant file uploader control for a Rails app, from setting up the model and controller to using Stimulus, hooking up ‘direct to S3’ uploads, and a way to monitor upload progress.
https://code.avi.nyc/an-activestorage-s3-direct-uploader-part-1-the-drag-and-drop-interface
A fantastic series of posts walking through the building of an elegant file uploader control for a Rails app, from setting up the model and controller to using Stimulus, hooking up ‘direct to S3’ uploads, and a way to monitor upload progress.
https://code.avi.nyc/an-activestorage-s3-direct-uploader-part-1-the-drag-and-drop-interface
Advanced Database Programming with Rails and Postgres
Learn about subqueries, materialized views, and custom data types in Postgres and Rails. We walk through realistic real-life examples, translating first into SQL, and then into Rails code. Every example comes with source code to follow along.
https://pganalyze.com/ebooks/advanced-database-programming-rails-postgres
Learn about subqueries, materialized views, and custom data types in Postgres and Rails. We walk through realistic real-life examples, translating first into SQL, and then into Rails code. Every example comes with source code to follow along.
https://pganalyze.com/ebooks/advanced-database-programming-rails-postgres
👍8
A simple Stimulus Tabs Controller
If you're after a simple Stimulus controller to handle tabs in your Ruby on Rails app, look no further. This controller handles toggling between multiple tabs, choosing a default tab, and adding CSS classes to the corresponding button.
https://railsnotes.xyz/blog/simple-stimulus-tabs-controller
If you're after a simple Stimulus controller to handle tabs in your Ruby on Rails app, look no further. This controller handles toggling between multiple tabs, choosing a default tab, and adding CSS classes to the corresponding button.
https://railsnotes.xyz/blog/simple-stimulus-tabs-controller
👍6
OpenAI transcription API and ActiveStorage analyzers
In the second post of the OpenAI blogpost series, I’m going to build another feature powered by the OpenAI transcription API. The feature is simple: We’re building an audiofile upload with ActiveStorage. After the file has been uploaded successfully, we’re going to use the transcription OpenAI endpoint to get the audiofile’s text content.
ModernRails - https://www.modern-rails.com/posts/activestorage-analyzers-and-the-openai-transcription-api/
In the second post of the OpenAI blogpost series, I’m going to build another feature powered by the OpenAI transcription API. The feature is simple: We’re building an audiofile upload with ActiveStorage. After the file has been uploaded successfully, we’re going to use the transcription OpenAI endpoint to get the audiofile’s text content.
ModernRails - https://www.modern-rails.com/posts/activestorage-analyzers-and-the-openai-transcription-api/
👍3
An Introduction to the ViewComponent Gem
Modern web UIs are complex. Traditional layout/template/partial techniques are not always the best fit. ViewComponent seeks to provide a better way. It's a framework for creating reusable, testable & encapsulated view components that integrate seamlessly with Rails. In this article, Abiodun Olowode shows us how to use ViewComponent to make our Rails views more manageable.
https://www.honeybadger.io/blog/ruby-view-components/
Modern web UIs are complex. Traditional layout/template/partial techniques are not always the best fit. ViewComponent seeks to provide a better way. It's a framework for creating reusable, testable & encapsulated view components that integrate seamlessly with Rails. In this article, Abiodun Olowode shows us how to use ViewComponent to make our Rails views more manageable.
https://www.honeybadger.io/blog/ruby-view-components/
Honeybadger Developer Blog
An Introduction to the ViewComponent Gem
Modern web UIs are complex. Traditional layout/template/partial techniques are not always the best fit. ViewComponent seeks to provide a better way. It's a framework for creating reusable, testable & encapsulated view...
❤3
DHH: 'Turbo 8 is Dropping TypeScript
https://world.hey.com/dhh/turbo-8-is-dropping-typescript-70165c01
https://world.hey.com/dhh/turbo-8-is-dropping-typescript-70165c01
Hey
Turbo 8 is dropping TypeScript
By all accounts, TypeScript has been a big success for Microsoft. I've seen loads of people sparkle with joy from dousing JavaScript with explicit types that can be checked by a compiler. But I've never been a fan. Not after giving it five minutes, not after…
👍3
Sqlite & Rails in Production
When deploying a Rails application to production, its rare to question the idea of running a Postgres or MySQL database to persist data and Redis for caching, background job processing, and WebSockets, but what if it could all be done without running these services?
https://fly.io/ruby-dispatch/sqlite-and-rails-in-production/
When deploying a Rails application to production, its rare to question the idea of running a Postgres or MySQL database to persist data and Redis for caching, background job processing, and WebSockets, but what if it could all be done without running these services?
https://fly.io/ruby-dispatch/sqlite-and-rails-in-production/
Rails 7.1 Beta 1: Dockerfiles, BYO Authentication, More Async Queries, and more!
- Dockerfiles for new applications
- Build your own authentication improvements
- More async queries for Active Record
- Built-in support for the Trilogy MySQL adapter
- Support for composite primary keys in Active Record
- Enqueue massive amounts of jobs with perform_all_later
- Introducing config.autoload_lib and config.autoload_lib_once for Enhanced Autoloading
- Support to Bun
https://rubyonrails.org/2023/9/13/Rails-7-1-0-beta-1-has-been-released
- Dockerfiles for new applications
- Build your own authentication improvements
- More async queries for Active Record
- Built-in support for the Trilogy MySQL adapter
- Support for composite primary keys in Active Record
- Enqueue massive amounts of jobs with perform_all_later
- Introducing config.autoload_lib and config.autoload_lib_once for Enhanced Autoloading
- Support to Bun
https://rubyonrails.org/2023/9/13/Rails-7-1-0-beta-1-has-been-released
Ruby on Rails: Compress the complexity of modern web apps
Rails 7.1 Beta 1: Dockerfiles, BYO Authentication, More Async Queries, and more!
Rails World is fast approaching and we’re gearing up to celebrate the 20th anniversary of Rails in style with the first beta release of Rails 7.1! There has been over five thousand commits made by over 800 contributors since Rails 7.0, so this release is…
Strada - Bridging the Web and Native Worlds
Strada is the missing library to take your Turbo Native apps to the next level. Turbo Native enables web developers to ship native apps, but the experience is limited to a WebView container within a native shell. The native app doesn’t have any knowledge about the web content that is being rendered, but Strada bridges that gap.
As part of the Hotwire family, Strada leverages the HTML you already have to enable high-fidelity native interactions on iOS and Android that are driven by your web app.
Rails World 2023
Strada is the missing library to take your Turbo Native apps to the next level. Turbo Native enables web developers to ship native apps, but the experience is limited to a WebView container within a native shell. The native app doesn’t have any knowledge about the web content that is being rendered, but Strada bridges that gap.
As part of the Hotwire family, Strada leverages the HTML you already have to enable high-fidelity native interactions on iOS and Android that are driven by your web app.
5th October 2023
Rails World 2023
Rails World - 2023
Rails World - 2023 — Strada - Bridging the Web and Native Worlds
A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.
Forwarded from Ruby on Rails | rubyhub
Install Ruby on Rails in 2023 with Rails 7. StartKit.
https://youtu.be/f6aAwAMH4Q8?si=iiBnXEv92zafve4Y
https://youtu.be/f6aAwAMH4Q8?si=iiBnXEv92zafve4Y
YouTube
Install Ruby on Rails in 2023 with Rails 7. StartKit.
https://github.com/the-teacher/rails7-startkit
Install and Run Ruby on Rails in Minutes! Rails 7. StartKit -- Rails App in a Docker container with some popular preinstalled tools. Works for all most popular Platforms.
Install and Run Ruby on Rails in Minutes! Rails 7. StartKit -- Rails App in a Docker container with some popular preinstalled tools. Works for all most popular Platforms.
DHH has introduced Kamal 1.0.
Now you can deploy web applications on various platforms, ranging from physical servers (so-called "bare metal") to virtual machines in the cloud.
Kamal provides continuous deployment without downtime, smooth restarts, resource bridging, remote building, management of additional services, and everything you need to deploy and manage your web application in production using Docker.
Originally designed for Rails applications, Kamal will work with any type of web application that can be containerized. Learn more in DHH's overview.
https://kamal-deploy.org/
Now you can deploy web applications on various platforms, ranging from physical servers (so-called "bare metal") to virtual machines in the cloud.
Kamal provides continuous deployment without downtime, smooth restarts, resource bridging, remote building, management of additional services, and everything you need to deploy and manage your web application in production using Docker.
Originally designed for Rails applications, Kamal will work with any type of web application that can be containerized. Learn more in DHH's overview.
https://kamal-deploy.org/
DHH has released Strada
Strada is finally here! The last piece of the Hotwire trifecta has been released. Kudos to Jason and his team for the significant effort. I'm thrilled that every part of our story in interface and mobile development is now open source.
Check it out at https://strada.hotwired.dev/
"This has been Hotwire's mission from the start. Empower individual developers to independently create and deliver full-featured experiences across all platforms."
Read more about Finishing Hotwire with the introduction of Strada: https://world.hey.com/dhh/finishing-hotwire-with-the-introduction-of-strada-9efdf091
Strada is finally here! The last piece of the Hotwire trifecta has been released. Kudos to Jason and his team for the significant effort. I'm thrilled that every part of our story in interface and mobile development is now open source.
Check it out at https://strada.hotwired.dev/
"This has been Hotwire's mission from the start. Empower individual developers to independently create and deliver full-featured experiences across all platforms."
Read more about Finishing Hotwire with the introduction of Strada: https://world.hey.com/dhh/finishing-hotwire-with-the-introduction-of-strada-9efdf091
Strada officially launched!
Strada provides structure and organization to the tangled mess that is the JavaScript bridge. It simplifies and standardizes communication between web and native components, which makes building robust native elements a joy.
Strada example:
🎯 https://masilotti.com/strada-launch/
Announcing Strada:
https://dev.37signals.com/announcing-strada/
Strada provides structure and organization to the tangled mess that is the JavaScript bridge. It simplifies and standardizes communication between web and native components, which makes building robust native elements a joy.
Strada example:
🎯 https://masilotti.com/strada-launch/
Announcing Strada:
https://dev.37signals.com/announcing-strada/
Rails GraphQL authentication from scratch
Devise is an awesome gem to add authentication for your rails application, but it may me a bit overkill solution if you are going to develop REST or GraphQL API for your SPA or mobile application. Today I’ll show you how to create GraphQL API without devise. I’ll use some methods that become available in rails 7.1.0.beta1, so please install this or higher version.
https://alec-c4.com/posts/2023-09-22-graphql-from-scratch
https://alec-c4.com/posts/2023-09-25-graphql-from-scratch-2
Devise is an awesome gem to add authentication for your rails application, but it may me a bit overkill solution if you are going to develop REST or GraphQL API for your SPA or mobile application. Today I’ll show you how to create GraphQL API without devise. I’ll use some methods that become available in rails 7.1.0.beta1, so please install this or higher version.
https://alec-c4.com/posts/2023-09-22-graphql-from-scratch
https://alec-c4.com/posts/2023-09-25-graphql-from-scratch-2
Alec-C4
Rails GraphQL authentication from scratch #1 | I'm Mary Poppins, y'all!
How to create GraphQL authentication from scratch without devise gem. Part 1