SECRET_KEY_BASEAR_PRIMARY_KEYAR_DETERMINISTIC_KEYAR_KEY_DERIVATION_SALT
General application:
APPLICATION_DOMAIN
OpenID connect:
OIDC_RSA_PRIVATE_KEYshould contain a valid RSA private key to sign the JSON web signature
For the production database:
POSTGRES_HOSTNAMEPOSTGRES_PASSWORDPOSTGRES_USER
For the mailer gateway in production:
USE_SMTP
If USE_SMTP is set to true (and the app uses smtp), we need the following
variables set as well:
SMTP_ADDRESSSMTP_PORTSMTP_AUTHENTICATIONSMTP_USERNAMESMTP_PASSWORDSMTP_DOMAINSMTP_ENABLE_STARTTLS
For the exception notification:
ENABLE_EXCEPTION_NOTIFIEREXCEPTION_NOTIFIER_RECIPIENTS(optional, only ifENABLE_EXCEPTION_NOTIFIERistrue)EXCEPTION_NOTIFIER_SENDER(optional)
If you want to add more than one recipient, you can pass in a string where the recipients
are delimited by a semicolon ;, e.g. "foo@example.com; bar@example.com
For the devise mailer
DEVISE_MAIL_SENDER(optional)
RECAPTCHA_SITE_KEYRECAPTCHA_SITE_SECRET
STEAM_WEB_API_KEYDISCORD_IDDISCORD_SECRETDISCORD_BOT_AUTH
When using Paypal gateway:
PAYPAL_IDPAYPAL_SECRET
L4N features a remote form modal, which enables to create / update data without having to navigate to a new page.
The feature is used as follows:
Link to open the modal:
= link_to "New item", new_item_path, class: "btn btn-primary", data: { turbo_frame: "remote_modal" }Controller:
def new
@item = NewsPost.new
show_turbo_modal modal_title: 'New Item', partial: 'form', partial_locals: { item: @item }
end
def create
@item = NewsPost.new(params[:news_post].permit(:title))
if @item.save
redirect_to root_path, notice: "Item was successfully created."
else
update_turbo_modal partial: 'form', partial_locals: { item: @item }
end
endForm partial:
Contains only the content to be rendered in the modal!
= simple_form_for item , url: items_path do |f|
= f.input :title
= f.save