-
After generating the views with How do you change these? (I only want to change a few of them, not translate them). |
Beta Was this translation helpful? Give feedback.
Answered by
janko
Jan 10, 2024
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jgthms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
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.