Skip to main content

Module framework_views

Module framework_views 

Source
Expand description

Built-in, overridable auth views (the Devise “views live in the gem” analogue).

doido new --auth and auth:install no longer copy auth controllers/views into the app. The built-in controllers under crate::controllers render templates like auth/sign_in; register_views makes those templates resolvable out of the box by registering them as framework templates in doido-view. An app that writes its own app/views/auth/*.html.tera (e.g. after doido generate auth:controllers) overrides them by name.

Call register_views once at boot, before doido_view::init.

Functions§

register_views
Registers the built-in auth view templates with doido-view so the framework controllers can render HTML without the app copying any view files. Idempotent.