ripe-article-50191
03/17/2023, 1:17 PMlemon-spoon-80671
03/17/2023, 3:38 PMcreamy-ghost-62907
03/17/2023, 7:36 PMkind-jewelry-65180
03/18/2023, 5:38 PMtabs do
field :notes, as: :has_many, scope: -> do
query.annotation
end, name: 'Notas'
field :notes, as: :has_many, scope: -> do
query.annotation
end, name: 'Observaciones'
end
But the second field the scope doesnt work, i just a replica of the first has_many fieldkind-bear-97086
03/20/2023, 2:57 PMstraight-pager-31449
03/22/2023, 2:33 PMblue-hospital-77159
03/27/2023, 9:18 AMvictorious-kangaroo-12568
03/27/2023, 2:48 PMkind-jewelry-65180
03/27/2023, 9:00 PMsection "Clients", icon: "heroicons/solid/archive-box" do
resource :clients, label: "Active"
resource :clients, label: "Rejected"
endmicroscopic-dream-82397
03/30/2023, 2:26 AMripe-article-50191
03/30/2023, 5:41 AMClass Scope < Scope inside def resolve?microscopic-dream-82397
03/31/2023, 3:30 PMmicroscopic-dream-82397
03/31/2023, 3:30 PMable-needle-51274
04/04/2023, 3:30 PMable-needle-51274
04/04/2023, 4:59 PMquaint-pencil-2979
04/06/2023, 7:45 PMruby
class ProjectResource < Avo::BaseResource
self.devise_password_optional = true # THis option but for github_secret
field :github_secret, as: :password
end
The problem is that if a not update this field (github_secret) in avo edit, this field is updated to a blank stringbig-sunset-95620
04/12/2023, 6:17 PMbig-sunset-95620
04/12/2023, 6:18 PMbig-sunset-95620
04/12/2023, 6:19 PMwide-art-99889
04/12/2023, 7:21 PMfield :coordinates, as: :location, stored_as: [:latitude, :longitude] (I already had latitude and longitude attributes on the model)
3. Add def coordinates and def coordinates=() methods to my model class.
4. Add the mapkick gem to my rails application.
When I visit the show page for one of the so-modified resources, I expect to see a map on the page. Instead, I see the following error:
undefined method `js_map' for #<Avo::Fields::LocationField::ShowComponent:0x00000001173d99c0 @compact=false, @field=#<Avo::Fields::LocationField:0x00000001302b5288 @show_on_index=false, @show_on_show=true, @show_on_new=true, @show_on_edit=true, @id=:coordinates, @name=nil, @translation_key=nil, @block=nil,
I took most of my inspiration from looking at the changes made to the dummy app in the commit, so I'm not sure what else I need to do for the js_map method from the gem to be available within avo.incalculable-psychiatrist-85460
04/13/2023, 1:04 AMincalculable-psychiatrist-85460
04/13/2023, 1:06 AMnice-ambulance-76519
04/13/2023, 5:01 AMbillowy-easter-81499
04/14/2023, 5:30 PMlemon-wall-20836
04/18/2023, 10:19 AMboundless-printer-62821
04/18/2023, 8:56 PM<svg><!-- SVG file not found: 'resources.svg' --></svg> in the HTML of the navigation, and this breaks the layout (the 'Resources" span is pushed off the right and overflows the container). I am using propshaft with Rails 7, cssbundling-rails and jsbundling-railsbright-tomato-27372
04/19/2023, 6:51 AMboolean and a textarea to see if it is done automatically from different fields but that doesn't seem to work.boundless-printer-62821
04/19/2023, 11:40 AMviews/avo/base/index.html.erb on the component render statements they are hit (and there is def content to render), but the output never seems to be appended to the page output. Im pretty sure this is caused by the fact I am using ViewComponent 3 (v3.0.0.rc5), and the slots in avo would need renaming to include with_ when called (https://viewcomponent.org/CHANGELOG.html#300rc1 "BREAKING: Remove deprecated slots setter methods. Use with_SLOT_NAME instead.") ... is it possible that Avo V3 has been updated to support Viewcomponent 3?early-knife-34520
04/19/2023, 11:55 AMflat-sugar-59156
04/19/2023, 7:49 PM