calm-gold-48525
05/24/2023, 6:56 PMbillowy-easter-81499
05/24/2023, 9:38 PMwooden-island-51391
05/25/2023, 9:03 PMbumpy-tent-43389
05/26/2023, 2:17 PMUnpermitted parameter: :button. Context: { controller: Avo::ActionsController, action: handle, request: #<ActionDispatch::Request:0x00007fb03cbae4f8>, params: {"authenticity_token"=>"[FILTERED]", "action_id"=>"DelayBooking", "fields"=>{"avo_resource_ids"=>"1", "avo_selected_query"=>"", "number_of_hours"=>"1"}, "button"=>"", "controller"=>"avo/actions", "action"=>"handle", "resource_name"=>"bookings"} }
Unpermitted parameter: :button. Context: { controller: Avo::ActionsController, action: handle, request: #<ActionDispatch::Request:0x00007fb03cbae4f8>, params: {"authenticity_token"=>"[FILTERED]", "action_id"=>"DelayBooking", "fields"=>{"avo_resource_ids"=>"1", "avo_selected_query"=>"", "number_of_hours"=>"1"}, "button"=>"", "controller"=>"avo/actions", "action"=>"handle", "resource_name"=>"bookings"} }
Unpermitted parameter: :button. Context: { controller: Avo::ActionsController, action: handle, request: #<ActionDispatch::Request:0x00007fb03cbae4f8>, params: {"authenticity_token"=>"[FILTERED]", "action_id"=>"DelayBooking", "fields"=>{"avo_resource_ids"=>"1", "avo_selected_query"=>"", "number_of_hours"=>"1"}, "button"=>"", "controller"=>"avo/actions", "action"=>"handle", "resource_name"=>"bookings"} }
Is this happening only to me (Ubuntu 22.04 with Avo 2.33.1)?calm-gold-48525
05/26/2023, 8:12 PMcalm-gold-48525
05/26/2023, 8:12 PMalert-toothbrush-24716
05/28/2023, 3:51 AMwide-art-99889
06/06/2023, 7:11 PMvictorious-kangaroo-12568
06/06/2023, 8:17 PMwide-art-99889
06/08/2023, 3:34 PMconfig/tailwind.config.js
that seem to be ignored by tailwind.
Maybe it's just me?wide-art-99889
06/08/2023, 3:35 PMcalm-gold-48525
06/08/2023, 10:22 PMcalm-gold-48525
06/08/2023, 10:24 PMincalculable-psychiatrist-85460
06/09/2023, 10:13 PM@resource.model.messages
, but not with creating new ones. Saving it manually with message = @resource.model.messages.new
-> message.save
does work (after inputting role
and content
values).
*Things that didn't work*:
- :message
or :messages
as an argument for fields_for
- changing the extra_params
to message:
(unknown attribute)
I'm unsure if it's something I have to change in the resource controller, the extra_params
, or the model.
# resource tool partial
ruby
<% if form.present? %>
<% form.fields_for @resource.model.messages.new do |message| %>
<%= form.label :message_content%>
<%= message.text_field :content, value: 'message name', class: input_classes %>
<%= message.hidden_field :role, value: 'user' %>
<% end %>
<% end %>
# Chat Custom Resource
ruby
self.title = :name
self.includes = [:messages]
self.extra_params = [messages: [:content, :role]]
self.model_class = ::Chat
*Would like to have*:
- any suggestions on how to enable this form on the Show view so it works as a live chat?billowy-easter-81499
06/12/2023, 2:24 PMacceptable-cartoon-88076
06/12/2023, 2:38 PMlemon-wall-20836
06/12/2023, 2:42 PMmammoth-guitar-49791
06/13/2023, 7:05 AMmammoth-guitar-49791
06/13/2023, 8:54 AMmammoth-guitar-49791
06/13/2023, 10:15 AMmammoth-guitar-49791
06/13/2023, 4:34 PMmammoth-guitar-49791
06/13/2023, 5:05 PMfield :avatar, as: :file, is_image: true
recommend using this.
The is_image, is_audio, and is_video options are deprecated in favor of letting Active Storage figure out the type of the attachment. If Active Storage detects a file as an image, Avo will display it as an image. Same for audio and video files.
but this at the bottom says its depreciated.
On my current version the image one display in the index without is_image.mammoth-guitar-49791
06/13/2023, 5:28 PMmammoth-guitar-49791
06/13/2023, 5:35 PMdancer
:has_many couples and has a profile_image
From the couple I would like to display the dancer image. Is there a reference somewhere on how to do something like this? ๐คfast-flag-76357
06/14/2023, 4:57 PMbillowy-easter-81499
06/14/2023, 5:10 PMcreamy-ghost-62907
06/15/2023, 1:23 AMAvo::TabGroupBuilder
to add a couple methods, and using Rails.configuration.to_prepare
to include a a couple modules in Avo::ApplicationController
. Could either of those things be causing some interference?microscopic-dream-82397
06/18/2023, 11:33 AMmicroscopic-dream-82397
06/18/2023, 11:39 AMacceptable-cartoon-88076
06/18/2023, 4:40 PM