What problem does it solve?
This Skill addresses the challenge of setting up and configuring the request layer in a Rails application, including routing, controllers, actions, and related functionalities. It simplifies the process of defining routes, creating controllers, managing parameters, and handling errors.
Core Features & Use Cases
- Routing Configuration: Define RESTful routes for resources and custom endpoints.
- Controller Creation: Generate and customize controllers with actions and filters.
- Parameter Filtering: Implement strong parameters for secure request handling.
- Error Handling: Map exceptions to appropriate HTTP responses.
- Use Case: When you are building a new Rails application and need to establish a robust request handling infrastructure, or when you are enhancing an existing application with new routes and controllers.
Quick Start
Apply the 'rails-controllers' skill to set up the request layer for your Rails application, ensuring proper routing and controller configuration.