# Rails: ActionView::MissingTemplate (Missing template users/show, application/show with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder]})

**Code:** `ActionView::MissingTemplate: Missing template` · **Category:** Ruby / Rails · **Seen on:** Ruby

The action tried to render a view that doesn't exist for the requested format/handler.

## Meaning

Create `app/views/users/show.html.erb` (matching controller/action names), or render explicitly (`render :other`, `render json:`). Check the file extension (`.html.erb`), the folder naming (plural), partial names start with `_`, and API-only apps lacking a renderer (`render json:`).

## Common causes

- View file missing or misnamed
- Wrong extension/handler (.erb vs .haml gem missing)
- API action with no explicit render (expects 204 or JSON)
- Partial name without underscore
- Wrong controller path (namespaced)

## Quick fix

1. Create the template with the right path/name
2. `render json:` / `head :no_content` for API actions
3. Verify gems for handlers (haml, slim, jbuilder)

## Detailed fix by platform

### Rails

1. `ls app/views/users` and `bin/rails routes -c users`

## How to diagnose

1. **Path** — Template exists?
2. **Format** — html/json?
3. **Handler** — Gem present?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/ruby/rails-missing-template)
