Lesson 2 — Auth views in Phlex
The generator creates ERB views. We replace them with Phlex — consistent with the rest of the app.
Delete the generated ERB files:
|
|
Minimal layout
Auth pages — sign in, sign up, password reset — need a clean, focused layout without the full app nav.
|
|
Views::Sessions::New — sign in
|
|
Note that TextInput is called without a form: argument here —
these are standalone inputs outside a form_with block. Check that
TextInput handles a nil form: gracefully. If it requires a form
object, pass f through or use a raw input tag instead.
Views::Passwords::New — forgot password
|
|
Views::Passwords::Edit — reset password
|
|
Pointing the controllers at Phlex views
The generated controllers render ERB by convention. We need to ensure
new and edit render our Phlex views.
|
|
|
|