Added pdf file upload

This commit is contained in:
2024-08-01 23:15:05 +02:00
parent 69bca2d99e
commit f7a60a90d8
10 changed files with 199 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
require_relative "boot"
require_relative 'boot'
require "rails/all"
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
@@ -14,7 +14,7 @@ module Plottservice
# Please, add to the `ignore` list any other `lib` subdirectories that do
# not contain `.rb` files, or that should not be reloaded or eager loaded.
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w(assets tasks))
config.autoload_lib(ignore: %w[assets tasks])
# Configuration for the application, engines, and railties goes here.
#
@@ -23,5 +23,7 @@ module Plottservice
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
# config.i18n.default_locale = :de
end
end

40
config/locales/de.yml Normal file
View File

@@ -0,0 +1,40 @@
# Files in the config/locales directory are used for internationalization and
# are automatically loaded by Rails. If you want to use locales other than
# English, add the necessary files in this directory.
#
# To use the locales, use `I18n.t`:
#
# I18n.t "hello"
#
# In views, this is aliased to just `t`:
#
# <%= t("hello") %>
#
# To use a different locale, set it with `I18n.locale`:
#
# I18n.locale = :es
#
# This would use the information in config/locales/es.yml.
#
# To learn more about the API, please read the Rails Internationalization guide
# at https://guides.rubyonrails.org/i18n.html.
#
# Be aware that YAML interprets the following case-insensitive strings as
# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings
# must be quoted to be interpreted as strings. For example:
#
# en:
# "yes": yup
# enabled: "ON"
de:
activerecord:
attributes:
job:
pdf: "PDF Dokument"
errors:
models:
job:
attributes:
pdf:
blank: "is erforderlich"

View File

@@ -28,4 +28,13 @@
# enabled: "ON"
en:
hello: "Hello world"
activerecord:
attributes:
job:
pdf: "PDF Document"
errors:
models:
job:
attributes:
pdf:
blank: "is required"