> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rails

> How to enumerate routes in a Rails app for UFL ingestion.

Routes live in `config/routes.rb`, not the filesystem:

```ruby theme={null}
resources :invoices          # → /invoices, /invoices/:id, /invoices/new, …
get "/billing", to: "billing#index"
root "home#index"            # → /
```

Run `bin/rails routes` for the authoritative list, or parse `routes.rb` directly. Keep GET routes that render views; skip `*_path` helpers for non-GET verbs and API-only routes.

**Source:** the controller action's view template — `app/views/<controller>/<action>.html.erb` — plus the layout `app/views/layouts/application.html.erb` and any partials it renders.

**Title:** the `content_for :title` in the template, or `ControllerName#action`.

**Styles:** `app/assets/stylesheets/application.css`, `tailwind.config.*` if present, `app/javascript/stylesheets/`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.