modular_routes icon indicating copy to clipboard operation
modular_routes copied to clipboard

Dedicated controllers for each of your Rails route actions.

Results 5 modular_routes issues
Sort by recently updated
recently updated
newest added

```ruby Rails.application.routes.draw do modular_routes do resources :app, only: %i[index] get '/:slug', to: 'tenant_home#index', as: :slug end end ``` If you set this on `config/routes.rb` when you go to `/app` it...

The idea is to pass an option to `modular_routes` helper that will overwrite the default controller method name `call`. An example of that could be: ```ruby # routes.rb modular_routes controller_method:...

enhancement

Sometimes you might have api endpoints being served within the same traditional web app. Having a way of ignoring `:edit` and `:new` would be nice. ```ruby # routes/web.rb modular_routes do...

enhancement