#lucky
In Rails you have controllers, and controllers have actions. In Lucky, we just have “Actions.” Another different is that Lucky handles routing in the action instead of in a different routes file
What’s different?
- Instead of a controller class with methods for actions, Lucky just has “actions” that are single classes. E.g. (
UsersController#index
in Rails isUsers::Index
in Lucky) - Lucky defines routes in the action, not in a separate routes file