Chris Oliver

Joined

290,070 Experience
86 Lessons Completed
296 Questions Solved

Activity

Posted in Strict Loading with ActiveRecord Discussion

Nice to be able to remove dependencies like the Bullet gem and do this all in Rails!

Once you have the row as a Ruby hash, you can use transform_keys to modify the keys and renaming the CSV headers (keys) to the name you want.

The column is computed on select and not on insert/update.

Posted in The Behaviors Of Super Discussion

Using method(:method_name) and method(:method_name).super_method can be incredibly handy for debugging. 🔥

A superpower if you will. 😜

Posted in ActiveJob Perform All Later Discussion

This is handy especially for things like notifications where you need to queue up many separate jobs at once.

DHH's keynote went up on YouTube this morning, so it shouldn't be too long!

Posted in Rails 7.1 Authentication From Scratch Discussion

Devise will always get security updates applied automatically, so it's generally a good idea to still use it unless you're regularly doing security testing against your application.

Posted in Wrapping Up Our URL Shortener Discussion

Congrats to everyone who has made it this far! The URL shortener was a great little project and I'm sure there's lots more improvements you can add to it.

What did you think of this project?

Posted in Health Check Endpoint in Rails 7.1 Discussion

This is fantastic to have out of the box in Rails. Hosting can now have a place to look and we don't have to do anything custom. 👍

As long as the tokens expire, are one-time use, and the user's email isn't compromised it should be fine. You'll still want to support 2FA through another mechanism for more security.

I much prefer email/password login so I can use a password manager.

Great episode Collin! The authenticate_by method really is a bug piece of making secure authentication from scratch in Rails. These are nuances that are important (and already done in Devise), so it's nice to see they're easier than ever in Rails.

Posted in Base62 Encoding Short Codes Discussion

Sounds like you have a bug somewhere. Have you compared your code to the repository?

Posted in URL Shortener Requirements Discussion

Amazing, thank you!

Posted in Rails 7.1 Authentication From Scratch Discussion

Looking forward to meeting you Frank!

Posted in Rails 7.1 Authentication From Scratch Discussion

Probably at some point in the long-term. It's a huge benefit to have everything handled in Rails instead of Devise's mixture of Rails + Rack / warden that can be harder to customize.

Posted in Rails 7.1 Authentication From Scratch Discussion

Authentication got a TON of great improvements in Rails 7.1 with authenticate_by, generates_token_for, normalizes, etc. Super duper excited for these things and they should clean up a lot of code. 🎉

Posted in Help to debug inside Jumpstart

Hey Alex,

You'll either want to run the rails server in its own terminal (without bin/dev) or switch to using overmind instead of foreman. I personally use overmind and it lets you connect to each process and interact with them, but foreman cannot.

I think that would be a JOIN and referencing the other table's column, but good suggestion. 👍

Posted in TailwindCSS Admin Theme

I like using Tailwind UI so I can mix and match components / layouts to create what I need since I have to customize themes anyways.

Posted in Setup Windows 10 Discussion

Thanks, removed the link. 👍