Sorting an array of objects in Ruby by object attribute?

4
General
Hi guys, I have an array of objects in [Ruby on Rails](https://mindmajix.com/ruby-on-rails-training). I want to sort the array by an attribute of the object. Is it possible?
Beatrice assiana replied

Deploying The Domain Monitor App To Production With Kamal Discussion

3
General
Super useful lesson. I think many of us would like to see the process of deploying to production with Postgres as the database.
Lucas Barker replied

Meta Tags from Scratch with Current Attributes, ActiveModel & render_in Discussion

9
General
Hey Chris! Sounds like you’re doing awesome work! Helping Rails developers build apps is a fantastic contribution. Keep it up!
ColeHarry replied

How to Debug Ubuntu and Debian Packages Discussion

3
General
Get ready for epic drifts Drift Boss and dramatic car flips that you won't find in any other game!
Henny Diani replied

How to test ActionMailer in Rails Discussion

19
General
Great episode, Chris. I like how you said you don't really need to test CSS styling but instead focus on testing the higher level functionality of your mailers. That way, a developer doesn't go dow...

How to Optimize ActiveRecord Queries with Large Data Sets in Rails 7?

6
General
I'm working with a large dataset in Rails 7 and some of my Active Record queries are getting slow. I've tried using .includes and .select, but performance still lags. What are the best practices fo...
Patrick Stevenson replied

Creating New Blog Posts Discussion

1
General
Hi! I don't understand why we must instantiate a BlogPost object in the `new` function, if we are also doing so in the `create` function. It is also not clear to me how did we map the <%= form....
Bradford Gesen replied

Rails World 2023: Powerful Rails Features You Might Not Know Talk Slides Discussion

3
General
I can't wait for the video of your conf !
Bradford Gesen replied

Asset Pipeline

2
General
What are some excellent resources to get a good foundational understanding of asset pipeline, esbuild, import maps, js bundling. I have a decent knowledge of Rails, but I have trouble understanding...
Francisco Holcomb replied

Black Friday 2025 Sale Discussion

2
General
Who managed to buy something?
stres sguide replied

Rails Application Templates Discussion

39
General
Hello,Im gettingCould not find "Procfile" in any of your source paths. Your current source paths are: /Users/my_user/Documents/dev/my_app/https:/raw.githubusercontent.com/excid3/jumpstart/masterUsi...
Ryan Girton replied

Custom Rails Configuration Options Discussion

2
General
Thanks for this episode, very interesting topic.
Ryan Girton replied

How to use HTML Button Form Attributes Discussion

6
General
This would have saved me a ton of time last year when I spend hours trying to organize the delete button. πŸ€¦β€β™‚οΈ
Charles Barrett replied

Ruby on Rails 3 Tutorial Book Question

3
General
Im following the PDF version of this book and keep having an issue with different versions of gems being compatible. I had to skip the TDD section all together because I couldnt get a compatible ve...
ScottLDanielson replied

How to use the Browser Guard in Rails Discussion

6
General
If you're building a no build Rails application that makes use of modern browser features (like ONCE Campfire!), you'll definitely want to use this.
Richard Ryan replied

Syncing Repositories with Ruby Scripts - Part 1 Discussion

7
General
Nice tutorial. Why git fetch followed by git pull and not just a single git pull?

Rails 8.1 Local CI Discussion

3
General
I found the default local CI to be a bit basic. One of my projects is a platform and when we run CI we have to run the test suite multiple times for each implementation of the platform, and we leve...
Richard Ryan replied

Eigenclasses Discussion

10
General
Why does this video say it is private - I have seen it on my iPhone, but its so small, I wanted to see it on a big screen too Also - I would enjoy a video on Ruby's Hash caching and Rails Lowlevel ...
Robin Madsen replied

Thread Safety with Mutexes in Ruby Discussion

6
General
In a Rails application that does standard CRUD for the most part, what would be a good use case for something like this? In the ferrum_pdf example you gave, it looks like you want to ensure there's...
evelynnotting replied

Deploying Rails 8 with Hatchbox Discussion

4
General
Awesome video Collin, and thanks for the shoutout! πŸ‘πŸ»πŸ™πŸΌπŸ˜Ž
Dale Holmes replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.