millions-exabyte-27721
08/30/2025, 12:07 PMminiature-optician-85831
08/30/2025, 12:07 PMlemon-wall-20836
08/30/2025, 12:19 PMlemon-wall-20836
08/30/2025, 12:19 PMlemon-wall-20836
08/30/2025, 12:19 PMmillions-exabyte-27721
08/30/2025, 1:13 PMmillions-exabyte-27721
09/18/2025, 12:02 PMbin/rails g avo:field document_scan --field_template file
Avo community 3.24.1
create app/components/avo/fields/document_scan_field
create app/components/avo/fields/document_scan_field/edit_component.html.erb
create app/components/avo/fields/document_scan_field/edit_component.rb
create app/components/avo/fields/document_scan_field/index_component.html.erb
create app/components/avo/fields/document_scan_field/index_component.rb
create app/components/avo/fields/document_scan_field/show_component.html.erb
create app/components/avo/fields/document_scan_field/show_component.rb
create app/avo/fields/document_scan_field.rb
but when I add it to my resource:
field :image, as: :document_scan, is_image: true
it complains in the Rails logs that it couldn't find the component.
Failed to find component for the `Avo::Fields::DocumentScanField` field on the `show` view.millions-exabyte-27721
09/18/2025, 12:04 PMscan, same issue:
[Avo->] 2025-09-18 14:03:14 +0200: Failed to find component for the `Avo::Fields::ScanField` field on the `show` view.
🤯millions-exabyte-27721
09/18/2025, 12:10 PMmillions-exabyte-27721
09/18/2025, 12:23 PMUseViewComponents, components is empty `{}`: https://github.com/avo-hq/avo/blob/428b13ff4504fe9d9fd457b80b5019ade1eabfe0/lib/avo/fields/concerns/use_view_components.rb#L25
2. the only place I can find where it's being set is here: https://github.com/avo-hq/avo/blob/428b13ff4504fe9d9fd457b80b5019ade1eabfe0/lib/avo/fields/base_field.rb#L106millions-exabyte-27721
09/19/2025, 4:30 AMloud-jewelry-99127
09/19/2025, 8:40 AMcomponent_classmillions-exabyte-27721
09/19/2025, 8:43 AMmillions-exabyte-27721
09/19/2025, 8:46 AM"Avo::Fields::ScanField::ShowComponent"
that does sound correct thoughmillions-exabyte-27721
09/19/2025, 8:46 AM# frozen_string_literal: true
class Avo::Fields::ScanField::ShowComponent < Avo::Fields::ShowComponent
endmillions-exabyte-27721
09/19/2025, 8:48 AMmillions-exabyte-27721
09/19/2025, 8:55 AMrescue block, the raw error message is "uninitialized constant Avo::Fields::ScanField::ShowComponent"
but why...millions-exabyte-27721
09/19/2025, 8:56 AMls -la app/components/avo/fields/scan_field/show_component.rb
-rw-r--r-- 1 jrubisch staff 108 Sep 18 14:02 app/components/avo/fields/scan_field/show_component.rbmillions-exabyte-27721
09/19/2025, 8:58 AMmillions-exabyte-27721
09/19/2025, 8:58 AMloud-jewelry-99127
09/19/2025, 3:07 PMloud-jewelry-99127
09/19/2025, 3:08 PMloud-jewelry-99127
09/19/2025, 3:08 PMloud-jewelry-99127
09/19/2025, 7:35 PMruby
fridge-door(dev)> Artist.create!(first_name: "First", last_name: "Last")
TRANSACTION (0.1ms) BEGIN immediate TRANSACTION /*application='FridgeDoor'*/
Artist Create (1.2ms) INSERT INTO "artists" ("first_name", "last_name", "date_of_birth", "created_at", "updated_at") VALUES ('First', 'Last', NULL, '2025-09-19 19:34:42.483174', '2025-09-19 19:34:42.483174') RETURNING "id" /*application='FridgeDoor'*/
TRANSACTION (0.1ms) ROLLBACK TRANSACTION /*application='FridgeDoor'*/
(fridge-door):1:in '<main>': SQLite3::SQLException: unknown function: ULID(): (ActiveRecord::StatementInvalid)
INSERT INTO "artists" ("first_name", "last_name", "date_of_birth", "created_at", "updated_at") VALUES ('First', 'Last', NULL, '2025-09-19 19:34:42.483174', '2025-09-19 19:34:42.483174') RETURNING "id" /*application='FridgeDoor'*/
/home/bob/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/sqlite3-2.7.3-x86_64-linux-gnu/lib/sqlite3/statement.rb:36:in 'SQLite3::Statement#prepare': unknown function: ULID(): (SQLite3::SQLException)
INSERT INTO "artists" ("first_name", "last_name", "date_of_birth", "created_at", "updated_at") VALUES ('First', 'Last', NULL, '2025-09-19 19:34:42.483174', '2025-09-19 19:34:42.483174') RETURNING "id" /*application='FridgeDoor'*/loud-jewelry-99127
09/19/2025, 7:52 PMloud-jewelry-99127
09/19/2025, 7:52 PMloud-jewelry-99127
09/19/2025, 7:52 PMloud-jewelry-99127
09/19/2025, 7:54 PMmillions-exabyte-27721
09/19/2025, 8:10 PMmillions-exabyte-27721
09/19/2025, 8:11 PMmillions-exabyte-27721
09/19/2025, 8:11 PMloud-jewelry-99127
09/19/2025, 8:19 PMmillions-exabyte-27721
09/19/2025, 8:28 PMloud-jewelry-99127
09/19/2025, 8:35 PMmillions-exabyte-27721
09/20/2025, 8:13 AMmillions-exabyte-27721
09/20/2025, 8:38 AM