Skip to content

Instantly share code, notes, and snippets.

@casperbrike
Created May 14, 2023 18:30
Show Gist options
  • Save casperbrike/a5e61cbea30d7faddf1b473539888da7 to your computer and use it in GitHub Desktop.
Save casperbrike/a5e61cbea30d7faddf1b473539888da7 to your computer and use it in GitHub Desktop.
Get Rails controller and action from route path
Rails.application.routes.recognize_path '/meeting_packs/1/view'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment