lib/rodauth/rails/feature/render.rb
# Renders templates without layout. First tries to render a user-defined
# template or partial, otherwise falls back to Rodauth's template.
Renders templates without layout. First tries to render a user-defined
template or partial, otherwise falls back to Rodauth's template.
Renders templates without layout . First tries to render a user - defined template or partial otherwise falls back to Rodauth ' s template .
def render(page)
          rails_render(partial: page.tr("-", "_"), layout: false) ||
            rails_render(action: page.tr("-", "_"), layout: false) ||
            super.html_safe
        end
def render ( page ) rails_render ( partial : page . tr ( "-" , "_" ) , layout : false ) || rails_render ( action : page . tr ( "-" , "_" ) , layout : false ) || super . html_safe end
Renders templates without layout.
Renders templates without layout .
page