Bootstrapping with Ruby on Rails Generators and Templates | AppSignal Blog

Let's explore the basics of Rails generators and templates, then examine how to customize your Rails app with templates.

Let's explore the basics of Rails generators and templates, then examine how to customize your Rails app with templates.
In this episode, we look at tips and tricks from read only attributes, inserting and upserting (update or insert) records, toggling booleans, and single table inheritance.
Comparing the different ways to set attributes in ActiveRecord (Rails 7)

Check out these 5 tips to ensure your transactions are readable and well-designed in your Ruby on Rails app.
Looking for a Ruby on Rails job or hiring Rails developers? We can help you!

How to configure database connections in your Rails app

How my team redefined the way we store one of the polymorphic associations in the Shopify codebase. This post is the solution we wish we found when we were looking.

A tutorial to integrate a Javascript color picker library Pickr, with Ruby on Rails 6.0, StimulusJS, and Webpacker.
This article was originally written by Diogo Souza on the Honeybadger Developer Blog. In the third...

Documentation and guides from the team at Fly.io.
ActsAsTree -- Extends ActiveRecord to add simple support for organizing items into parent–children relationships. - amerine/acts_as_tree
Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

Adding new code to Rails controllers can slow your pages down. Here's how to make rendering your Rails pages faster.


This was originally posted on my blog Since Ruby on Rails is not the fastest web framework out th...
Are you dealing with an external API and not sure where to put that code? Using ActiveModel::Model module can be a clean way of doing so in a OO way. It's a model, but not connected to ActiveRecord/your DB. — Sebastien Auriault (@websebdev)

Svelte is slowly rising to fame these days and it’s getting more and more traction with new version 3 being released in April.
Creating and Customizing Rails Generators & TemplatesRails generators are an essential tool for improving your workflow. With this guide you will learn how to create generators and customize existing ones.After reading this guide, you will know: How to see which generators are…
Starting with Rails 6, Webpacker is the default JavaScript compiler. It means that all the JavaScript code will be handled by Webpacker instead of the old assets pipeline aka Sprockets. Webpacker is different from asset pipeline in terms of philosophy as well as implementation…

This article shows how to optimize a Full Text Search implementation with Rails and PostgreSQL, taking a single query from 130ms to 7ms.
I want to populate a new feature with dummy data, but don't want to use the db/seeds.rb file as it already has seeds other data irrelevant for this feature. To run the default seeds.rb file, you r...

Learnings and notes from a JavaScript developer trying out Ruby and Ruby on Rails 6 for the first time.

Discover lesser-known Rails 6 features that stay out of the spotlight but can bring a lot to your current applications.

Should you be concerned about Rails concerns?
My favourite part of Rails is clearly ActiveRecord’s scopes. Their expressiveness and their reusability is simply great.
What this feature is for The credentials feature is a way of storing secrets that you don’t want to keep in plaintext, like AWS credentials for example. (In fact, the one and only thing I keep in my main Rails project’s credentials are my Active Storage AWS credentials.) Why the…
Ilya Bodrov continues the Authentication in Rails series by looking at the most popular authentication gem: Devise. Basic setup to using extensions.

The Rails helper excerpt can extract a chunk of text that matches a certain phrase, no matter where in the string it is.
News & blog about Learn Enough (including the Ruby on Rails Tutorial)

Motivation Rails rake tasks are commands that automate specific acti...
Welcome to the first post in our series about Ruby on Rails Patterns and Anti-patterns. In each of th...

Thanks to built-in scaffolding feature starting the project in Ruby on Rails is easy, but when you create your own scaffold generator, it's even easier!
Metaprogramming is an integral part of Ruby, more so than in any other language. This article explains the hows and whys.
You can either Collect Data or Create your Own Data
On November 5, 2021 (a Friday of course), we've deployed innocent-looking gem updates. Minor versions of Ruby on Rails, Ruby Sentry client, Ruby Slack client, http libraries, Puma, Devise, OmniAuth Ruby client, Mongoid, and a few test gems. However, something went very wrong. We…

In this demo application we will demonstrate that how you can upload documents using active records and convert preview of PDF pages as images. We have also used action cable to display progress of PDF pages to image conversion inside bootstrap modal. Though this is a simple and…

Implementing search in your Rails app can be vexing. Here's a great pattern to use that combines the best parts of ActiveRecord and Postgres.
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 more enjoyable-to-write…

Let's dive into Bullet and find out how it can help you identify some database-related problems.