Phoenix Controllers

•
95
•

Manages HTTP request handling, parameter processing, and response rendering for Elixir Phoenix applications.

This skill empowers Claude to architect and implement robust Phoenix controllers, serving as the essential bridge between routes and views. It provides specialized guidance on handling the Plug.Conn struct, extracting parameters via pattern matching, managing flash messages, and implementing secure redirects. Whether building RESTful APIs or traditional HTML web applications, this skill ensures the application of best practices like thin controllers, action fallbacks for centralized error handling, and comprehensive controller testing using verified routes.

Key Features

01Response rendering for HTML, JSON, and custom formats
02Implement RESTful controller actions including index, show, and create
0395 GitHub stars
04Advanced parameter extraction using Elixir pattern matching
05Centralized error handling with Action Fallback controllers
06Flash message management and secure verified route redirects

Use Cases

01Creating automated controller tests using Phoenix ConnCase
02Building backend logic for web applications and RESTful APIs
03Implementing user feedback cycles with flash messages and redirects