Remote Ruby cover image

Concurrency Problems Bro

Remote Ruby

00:00

How to Set Current Board in Routes in an Application Controller?

Routing constraints is basically it's just as Chris was saying, it looks for one method on the class you tell it the constraint is. And that's matches question mark. It takes the request and then it just you got to return true or false. If it returns true, it considers this constraint true and does everything inside of it or otherwise it's false and does it. One thing I started doing is so I have a board constraint that will look up to see if they're matching custom domain or sub domain for the request. And I'll actually set current board there because I've already got to do the database query in your routes.

Play episode from 27:53
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app