Rails advanced routing constraints
26-Jan-2024 746
I’m on a client project that’s using Devise. In an effort to prevent anonymous users from accessing admin routes, we wrap those routes with an authenticated constraint. This constraint also ensures only authenticated users who are admins are allowed access.
Rails advanced routing constraints #ruby #rubydeveloper #rubyonrails #Rails #advanced #routing #constraints https://rubyonrails.ba/link/rails-advanced-routing-constraints