Ruby can be treated differently, but we love it with all our hearts for its multifunctionality and variety of applications. Yes, let's not hide it, this language is not about the popularity and speed of writing code. However, it occupies a special place in the hearts of Evrone, and Ruby is truly valuable for its technical capabilities and efficiency in developing web applications. So that you can make sure of this with your own, and not just with our eyes, we have prepared this post.
We dug into our bins and collected an ultra useful digest for you from the most relevant projects dedicated to development on Ruby. We tear away from our hearts, and everything at once. We assure you that even if you are a beginner and are just getting involved in the world of IT development - be sure that in our collection you will find a treasure trove of useful resources. Well, flip through the slides👆🏻
#evrone
We dug into our bins and collected an ultra useful digest for you from the most relevant projects dedicated to development on Ruby. We tear away from our hearts, and everything at once. We assure you that even if you are a beginner and are just getting involved in the world of IT development - be sure that in our collection you will find a treasure trove of useful resources. Well, flip through the slides👆🏻
#evrone
Moving away from importmaps to esbuild in Rails 7
Rather than spend valuable time trying to debug this and fix it, I'd prefer to migrate to using Esbuild, as I believe that’s generally a more stable way to handle JavaScript bundling at this point in time.
https://youtu.be/Aw03k1X4zjA
Rather than spend valuable time trying to debug this and fix it, I'd prefer to migrate to using Esbuild, as I believe that’s generally a more stable way to handle JavaScript bundling at this point in time.
https://youtu.be/Aw03k1X4zjA
YouTube
Moving away from importmaps to esbuild in Rails 7
I’ve hit a snag recently with Safari and support for importmaps in Rails 7. Rather than spend valuable time trying to debug this and fix it, I'd prefer to migrate to using Esbuild, as I believe that’s generally a more stable way to handle JavaScript bundling…
Importing database dump in Ruby on Rails
Sometimes, we need to load the data from sandbox environments, production environments into our local application.
We generally get a dump.tar.gz or zipped file, let’s see how we can import the data.
https://telegra.ph/Importing-database-dump-in-Ruby-on-Rails-06-27
https://medium.com/ruby-rails-tips/importing-database-dump-in-ruby-on-rails-4591ff80e9e1
Sometimes, we need to load the data from sandbox environments, production environments into our local application.
We generally get a dump.tar.gz or zipped file, let’s see how we can import the data.
https://telegra.ph/Importing-database-dump-in-Ruby-on-Rails-06-27
https://medium.com/ruby-rails-tips/importing-database-dump-in-ruby-on-rails-4591ff80e9e1
Telegraph
Importing database dump in Ruby on Rails
1. Unzip the data. 2. Drop the database that you have in your local, you can drop it in two ways a. rails db:drop b. You can login to your database like for e.g if you are using psql, just type psql, then do drop mydatabase . 3. Now we need to create the…
Here is a list of some well-known Ruby frameworks
🔹 Ruby on Rails (RoR) - https://rubyonrails.org
🔹 Sinatra - http://sinatrarb.com
🔹 Hanami (formerly Lotus) - https://hanamirb.org
🔹 Padrino - http://padrinorb.com
🔹 Cuba - https://cuba.is
🔹 Grape - https://github.com/ruby-grape/grape
🔹 Ramaze - http://ramaze.net
🔹 NYNY - https://github.com/ruby-server/nyny
🔹 Roda - http://roda.jeremyevans.net
🔹 Camping - http://camping.io
🔹 RubyMotion - http://rubymotion.com
🔹 Shoes - http://shoesrb.com
🔹 Volt - http://voltframework.com
🔹 Hobo - http://hobocentral.net
🔹 Merb - http://merb.seattlerb.org
Please note that this is just a selection of frameworks available in Ruby. There are many others, although they may be less well-known or have lower popularity. Most of these frameworks have active communities, documentation, and usage examples to help you choose the right framework for your projects."
🔹 Ruby on Rails (RoR) - https://rubyonrails.org
🔹 Sinatra - http://sinatrarb.com
🔹 Hanami (formerly Lotus) - https://hanamirb.org
🔹 Padrino - http://padrinorb.com
🔹 Cuba - https://cuba.is
🔹 Grape - https://github.com/ruby-grape/grape
🔹 Ramaze - http://ramaze.net
🔹 NYNY - https://github.com/ruby-server/nyny
🔹 Roda - http://roda.jeremyevans.net
🔹 Camping - http://camping.io
🔹 RubyMotion - http://rubymotion.com
🔹 Shoes - http://shoesrb.com
🔹 Volt - http://voltframework.com
🔹 Hobo - http://hobocentral.net
🔹 Merb - http://merb.seattlerb.org
Please note that this is just a selection of frameworks available in Ruby. There are many others, although they may be less well-known or have lower popularity. Most of these frameworks have active communities, documentation, and usage examples to help you choose the right framework for your projects."
Top 10 ways to secure Ruby on Rails applications
Ruby on Rails is one of the most loved combinations in tech. It’s a language and framework that’s accessible to people of varying skill sets and experience.
Its maturity and widespread adoption shows with how much the core team and community care about security. Each release improves the framework's hardiness, but there's still so much we can do as developers to protect our applications.
To help choose where to begin, let's look at 10 categories—following OWASP’s latest category prioritizations—where we as Rails developers can have the most impact when securing our applications.
https://www.bearer.com/blog/ruby-security-top-10
Ruby on Rails is one of the most loved combinations in tech. It’s a language and framework that’s accessible to people of varying skill sets and experience.
Its maturity and widespread adoption shows with how much the core team and community care about security. Each release improves the framework's hardiness, but there's still so much we can do as developers to protect our applications.
To help choose where to begin, let's look at 10 categories—following OWASP’s latest category prioritizations—where we as Rails developers can have the most impact when securing our applications.
https://www.bearer.com/blog/ruby-security-top-10
Rails 7 #137 Use ViewComponent to Abstract reusable HTML. Blocks, Slots, Variables
https://youtu.be/HCfWfOTDpD4
https://youtu.be/HCfWfOTDpD4
YouTube
Rails 7 #137 Use ViewComponent to Abstract reusable HTML. Blocks, Slots, Variables
Don't repeat yourself (DRY) applies not only to Ruby code, but HTML and CSS too!
In this episode we will identify common HTML/CSS elements across some pages in our app and abstract it into a ViewComponent.
A View Component can accept variables and blocks…
In this episode we will identify common HTML/CSS elements across some pages in our app and abstract it into a ViewComponent.
A View Component can accept variables and blocks…
Hotwire use case with sample code
Hotwire is the latest way of building reactive applications with little or no visible javascript. This collection contains some use cases that you can apply Hotwire in your Ruby on Rails app.
https://hotwiredcases.dev/
Hotwire is the latest way of building reactive applications with little or no visible javascript. This collection contains some use cases that you can apply Hotwire in your Ruby on Rails app.
https://hotwiredcases.dev/
Error Handling: Ruby on Rails Best Practices
Handling errors efficiently and effectively is an essential aspect of developing robust applications. Ruby, and its popular framework Ruby on Rails, offer various methods for managing exceptions with ease. This article will delve into the concept of error handling in Ruby and Ruby on Rails, providing you with practical knowledge to write more resilient and fault-tolerant applications.
https://patrickkarsh.medium.com/error-handling-in-ruby-and-ruby-on-rails-7fc772d69973
Handling errors efficiently and effectively is an essential aspect of developing robust applications. Ruby, and its popular framework Ruby on Rails, offer various methods for managing exceptions with ease. This article will delve into the concept of error handling in Ruby and Ruby on Rails, providing you with practical knowledge to write more resilient and fault-tolerant applications.
https://patrickkarsh.medium.com/error-handling-in-ruby-and-ruby-on-rails-7fc772d69973
AnyCable v1.4: reliable real-time for all: Ruby, Rails, Hotwire and beyond
https://youtu.be/4n1SxfK0Uqg
https://youtu.be/4n1SxfK0Uqg
YouTube
AnyCable v1.4: reliable real-time for all: Ruby, Rails, Hotwire and beyond
Vladimir Dementyev is speaking about AnyCable v1.4, explaining why the new set of features is the reason we now recommend AnyCable as the most reliable on-premise real-time server for applications of all sizes, built on Rails, Ruby, and beyond.
Sign up for…
Sign up for…
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
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
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
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/
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