Skip to content

How do you change rodauth views labels? #265

Answered by janko
jgthms asked this question in Q&A
Discussion options

You must be logged in to vote

See this section for "auth methods" and "auth value methods". These are auth value methods, so you can pass a string directly in the configuration DSL:

class RodauthMain < Rodauth::Rails::Auth
  configure do
    login_label "..."
    password_label "..."
  end
end

But you don't need to use these methods, you can just hardcode strings directly in view templates, like you'd normally do in Rails. The main reason rodauth-rails generates templates that use these methods is so that things like i18n works automatically.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jgthms
Comment options

Answer selected by jgthms
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