Latest Ruby news from the world

18 August 2023

Mistakes to avoid when working with Rails Migration

In this post, we'll take a comprehensive plunge into Rails migration.
Ruby News
Aug2023
17 August 2023

Intro to GraphqlRails

In this blog post, e'll delve into the unique philosophy of GraphqlRails, one that doesn't just view GraphQL as an isolated entity, but rather, seamlessly intertwines it with the familiar entities of models, controllers, and routes that form the backbone of every Ruby on Rails project.
Ruby News
Aug2023
17 August 2023

Introducing Line Range Filtering in Rails 7.1 Testing

In this blog post, we will explore the line range filtering feature and demonstrate how it can improve our testing workflow.
Ruby News
Aug2023
16 August 2023

How the Rails params hash works

Uncover the inner workings of Ruby on Rails with our dive into the Params hash—an essential component for handling HTTP requests. From query params to avoiding injection, this article will elevate your understanding of Rails, providing you with the tools to create more secure and efficient web applications.
Ruby News
Aug2023
16 August 2023

Object-Oriented Programming (OOP) with Ruby on Rails

In this article, we'll build a vending machine using the principles of OOP in Ruby on Rails.
Ruby News
Aug2023
16 August 2023

A demo of Rails and the OpenAI Chat API

This post will kick off a blogpost series of typical features, that can be built with the OpenAI API and Rails. It’s way more powerful to interact with the API directly than with ChatGPT and a lot of interesting features can be built with the API.
Ruby News
Aug2023
15 August 2023

Complementing exceptions - Introducing monads for error handling in ruby

In this article, we will delve into the implementation of this technique using the dry-monads gem.
Ruby News
Aug2023
15 August 2023

Empowering Ruby in the World of Machine Learning

In this post we'll talk about Ruby and Machine Learning.
Ruby News
Aug2023
13 August 2023

Using Zeitwerk Outside Rails

This article shows how to use the Zeitwerk gem to autoload classes and modules in a Ruby app that's not using Rails. We'll also learn how Rails configures Zeitwerk internally and introduce the concept of models in our no-rails Ruby web application.
Ruby News
Aug2023
11 August 2023

Rails has_one Nested Attributes Tweaking

In this blog post, the author explains has_one Nested Form Sending id Attribute
Ruby News
Aug2023
9 August 2023

Preview emails in Rails with letter_opener, MailCatcher and MailHog

In this article, the author will share everything he's learned about email previewing in Rails and show you how to quickly preview emails in your Ruby on Rails apps, using each of these methods (mailer previews, letter_opener, MailCatcher and MailHog)
Ruby News
Aug2023
9 August 2023

TailwindCSS on Rails 01: Responsive layout with sidebar

In this post, the author will cover the main aspects of using TailwindCSS when building a Rails app.
Ruby News
Aug2023
9 August 2023

You Don't Need Rails to Start Using Hotwire

Although Hotwire is closely tied to Ruby on Rails, you might be surprised to know that you don't really need Rails to learn, play, and experiment with Hotwire. In this article, we'll build a simple static site that uses Turbo Drive + Frames to make it responsive and use Streams to make it dynamic.
Ruby News
Aug2023
9 August 2023

Integrate ChatGPT with Rails 7: Step-by-Step Tutorial

A comprehensive guide to building a Ruby on Rails frontend that interfaces with OpenAI’s ChatGPT. Covering user management, conversation creation, and the ability to continue conversations at any time, this tutorial is tailored for both new and experienced developers eager to embrace the power of AI-driven communication.
Ruby News
Aug2023
8 August 2023

Safe redirects in Rails 7

Enforcing canonical URLs by redirecting to params is not safe and may raise an exception. Use strong params with allow_other_host: false for security.
Ruby News
Aug2023
7 August 2023

Ruby on Rails and the Power of MVC Architecture: a Comprehensive Guide

In the landscape of modern web development, few frameworks have had as profound an impact as Ruby on Rails (RoR). Powered by the elegance of Ruby and the efficiency of the Model-View-Controller (MVC) design pattern, Rails provides developers with tools to craft scalable and maintainable applications.
Ruby News
Aug2023
4 August 2023

Designing and Writing Prompts for AI: a Ruby Example

In this post, we’ll examine how to create effective AI prompts programmatically in Ruby.
Ruby News
Aug2023
3 August 2023

Advanced Usages of Devise for Rails

In this blog post, we'll explore more advanced usages of Devise, specifically the use of OmniAuth, API authentication, and Authtrail.
Ruby News
Aug2023
3 August 2023

Encrypting Sensitive Data in Rails 7 with Encrypted Attributes

Rails 7 has introduced a powerful feature to help developers protect sensitive data: encrypted attributes. This built-in functionality provides an additional layer of security that is both easy to implement and robust.
Ruby News
Aug2023
3 August 2023

Rails 7.1 enhances PostgreSQL enum functionality

In Ruby on Rails, PostgreSQL provides an extension for defining enumerations, which allows you to specify a set of possible values for a column. This is useful when limiting your model's allowed values for a particular attribute.
Ruby News
Aug2023
2 August 2023

Ruby News July 2023 Digest

Ruby News July 2023 Digest
Ruby News
Aug2023
29 July 2023

Build a simple scraper with Ruby

In this post, the author will illustrate how to scrape Wikipedia to fetch specific elements from a webpage.
Ruby News
Jul2023
28 July 2023

Integrate Replicate in Rails Application

Integrate Replicate in Rails application and effortlessly run various machine learning models in the cloud using Replicate.
Ruby News
Jul2023
28 July 2023

Using Concerns with Ruby On Rails

Rails Concerns are a great way to keep your code DRY by making it easy to share code across Modules and Classes. The post will be going through some of the in-and-outs of Concerns, why they’re useful and how to use them.
Ruby News
Jul2023