Last Update: 2020-06-30 15:06:09 -0700

Display authentication links

You can retrieve a relative URL to any Rodauth action by calling the corresponding *_path method on the Rodauth instance:

<a href="<%= rodauth.login_path %>">Sign in</a>
<a href="<%= rodauth.create_account_path %>">Sign up</a>

For absolute URLs instead of paths, you can use the *_url methods:

<a href="<%= rodauth.login_url %>">Sign in</a>
<a href="<%= rodauth.create_account_url %>">Sign up</a>