Skip to content

How to get custom layout? #295

Answered by janko
pboling asked this question in Q&A
Apr 23, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

rodauth-rails loads the render Roda plugin only to be able to render Rodauth's built-in views, which are in Tilt and within a Roda instance. It only gets the page HTML, and forwards it to a Rails controller, which renders the layout, because that's a Rails view template rendered in Rails view context.

You change the layout in RodauthController, just like you do for normal Rails views, see https://github.com/janko/rodauth-rails/wiki/Different-layout.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pboling
Comment options

@pboling
Comment options

Answer selected by pboling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants