Log in Sign up
1 Matching Annotations
  1. Apr 2021
  2. github.com github.com
    heartcombo/devise
    1
    1. TylerRick 02 Apr 2021
      in Public
      # authenticated :user, lambda {|u| u.role == "admin"} do # root to: "admin/dashboard#show", as: :user_root # end
      flexibility can provide a lambda/block to customize gem: devise Rails: routes: different routes for authenticated users Rails: routes: constraints / conditional routes
    Visit annotations in context

    Tags

    • flexibility
    • Rails: routes: different routes for authenticated users
    • gem: devise
    • can provide a lambda/block to customize
    • Rails: routes: constraints / conditional routes

    Annotators

    • TylerRick

    URL

    github.com/heartcombo/devise/blob/master/lib/devise/rails/routes.rb
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy