nice-ambulance-76519
04/13/2023, 5:01 AMlemon-wall-20836
04/13/2023, 5:01 AMlemon-wall-20836
04/13/2023, 5:02 AMnice-ambulance-76519
04/13/2023, 5:04 AMfield :questions, as: :has_many
field :email_accounts, as: :has_and_belongs_to_many,
attach_scope: -> { query.where(operation: parent.operation).where(quiz: true).order(name: :asc) }
quiz.rb
belongs_to :blog
belongs_to :operation
has_many :questions
has_many :answers, through: :questions
has_and_belongs_to_many :email_accounts
has_one_attached :rules
has_prefix_id :q, minimum_length: 6
lemon-wall-20836
04/13/2023, 5:05 AMlemon-wall-20836
04/13/2023, 5:05 AMnice-ambulance-76519
04/13/2023, 5:05 AMlemon-wall-20836
04/13/2023, 5:06 AMavo.base.js:1
part and let me know what you got there?lemon-wall-20836
04/13/2023, 5:06 AMnice-ambulance-76519
04/13/2023, 5:07 AMnice-ambulance-76519
04/13/2023, 5:08 AMlemon-wall-20836
04/13/2023, 5:08 AMlemon-wall-20836
04/13/2023, 5:08 AMnice-ambulance-76519
04/13/2023, 5:08 AMnice-ambulance-76519
04/13/2023, 5:08 AMnice-ambulance-76519
04/13/2023, 5:09 AMYou are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do!
Load your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.
For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements
——
Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s
lemon-wall-20836
04/13/2023, 5:09 AMlemon-wall-20836
04/13/2023, 5:09 AMlemon-wall-20836
04/13/2023, 5:09 AMnice-ambulance-76519
04/13/2023, 5:09 AM<script>
//<![CDATA[
window.Avo = window.Avo || { configuration: {} }
Avo.configuration.timezone = 'UTC'
Avo.configuration.root_path = '/admin/avo'
Avo.configuration.search_debounce = '300'
Avo.configuration.cookies_key = 'avo'
//]]>
lemon-wall-20836
04/13/2023, 5:09 AMnice-ambulance-76519
04/13/2023, 5:10 AMnice-ambulance-76519
04/13/2023, 5:10 AMRails.application.routes.draw do
devise_for :users
devise_scope :user do
require "sidekiq/web"
require "sidekiq/cron/web"
authenticated :user do
mount Sidekiq::Web => "admin/sidekiq"
mount Avo::Engine, at: Avo.configuration.root_path
end
end
resources :quizzes_presentations, only: %i[new show create]
get "/:id", to: "quizzes_presentations#show"
root to: "quizzes_presentations#new"
end
lemon-wall-20836
04/13/2023, 5:10 AMroot_path
in the `avo.rb`initializer?nice-ambulance-76519
04/13/2023, 5:11 AMconfig.root_path = "admin/avo"
lemon-wall-20836
04/13/2023, 5:11 AMlemon-wall-20836
04/13/2023, 5:11 AMlemon-wall-20836
04/13/2023, 5:11 AM/admin
or /avo
lemon-wall-20836
04/13/2023, 5:11 AMlemon-wall-20836
04/13/2023, 5:12 AM/
nice-ambulance-76519
04/13/2023, 5:12 AMlemon-wall-20836
04/13/2023, 5:12 AM/admin/avo
using the routes filenice-ambulance-76519
04/13/2023, 5:17 AMlemon-wall-20836
04/13/2023, 5:27 AMlemon-wall-20836
04/13/2023, 5:28 AMnice-ambulance-76519
04/13/2023, 2:18 PMlemon-wall-20836
04/13/2023, 2:43 PMlemon-wall-20836
04/13/2023, 2:43 PMnice-ambulance-76519
04/13/2023, 2:44 PMnice-ambulance-76519
04/13/2023, 2:44 PMlemon-wall-20836
04/13/2023, 2:44 PMnice-ambulance-76519
04/13/2023, 2:44 PMlemon-wall-20836
04/13/2023, 2:44 PMnice-ambulance-76519
04/13/2023, 2:46 PMmicroscopic-dream-82397
04/14/2023, 4:59 PMlemon-wall-20836
04/14/2023, 5:23 PMlemon-wall-20836
04/14/2023, 5:23 PMlemon-wall-20836
04/14/2023, 5:23 PMlemon-wall-20836
04/14/2023, 5:26 PMlemon-wall-20836
04/14/2023, 5:26 PMlemon-wall-20836
04/14/2023, 5:26 PMruby
Avo.configure do |config|
config.cache_resources_on_index_view = true
end
lemon-wall-20836
04/14/2023, 5:26 PMlemon-wall-20836
04/14/2023, 7:05 PMmicroscopic-dream-82397
04/15/2023, 1:55 AM