How to write RESTful controllers for this Rails 8 project. Use when creating, modifying, or restructuring controllers, adding new actions, defining routes, or designing resource hierarchies. Also use when the user mentions "controller", "routes", "actions", "REST", "nested resource", "CRUD", or asks where to put a new action. Proactively apply these rules whenever touching controllers or routes, even if the user doesn't explicitly ask about REST conventions.
$npx -y skills add mattsears/rails-cto --skill rails-cto-restfulInstalls into the current project.
Run `npx skills use "https://github.com/mattsears/rails-cto" --skill "mattsears/rails-cto/rails-cto-restful"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/mattsears/rails-cto" that are relevant to the current task. Run `npx skills add "https://github.com/mattsears/rails-cto"` and select the relevant skills, then follow their instructions.