creamy-ghost-62907
12/19/2022, 12:16 AMhas_many
association to the model, but it seems like Avo isn't picking up on it properly?creamy-ghost-62907
12/19/2022, 12:17 AMlemon-wall-20836
12/19/2022, 9:35 AMbright-tomato-27372
12/20/2022, 7:43 AMbin/rails generate avo:tailwindcss:install
and got no issues, then run bin/dev
but I'm getting this error when I try to load a page.
Sprockets::DoubleLinkError in Avo::Products#index
Showing /Users/main/programs/test_avo_app/app/views/avo/partials/_pre_head.html.erb where line # raised:
Multiple files with the same output path cannot be linked ("avo.tailwind.css")
In "/Users/main/programs/test_avo_app/app/assets/config/manifest.js" these files were linked:
- /Users/main/programs/test_avo_app/app/assets/stylesheets/avo.tailwind.css
- /Users/main/programs/test_avo_app/app/assets/builds/avo.tailwind.css
The generator creates /app/assets/stylesheets/avo.tailwind.css
and running bin/dev
creates both /app/assets/builds/tailwind.css
and /app/assets/builds/avo.tailwind.css
.
The error shows because there are two css files with the same name in two different directories. The generator also adds //= link_tree ../builds
to the manifest.js
file so that's where the problem is coming in. After I remove the //= link_tree ../builds
from manifest.js
, things run fine, but why would the Avo generator add it?bright-tomato-27372
12/20/2022, 8:42 AMview_{association}?
should hide the "view" / eye icon for the association.
def view_comments?
false
end
when I do that, it hides the association all together. It's not until I change it to show_{association}?
to be false
that the "view" / eye icon disappears. I think there's a swap in the naming for view
and show
for the association authorization methods but maybe someone else can try it.
I am already using Avo 2.21 (I saw the bug report). This only happens with view
/ show
. edit_{association}?
and detach_{association}?
work as expected and hide those iconsripe-article-50191
12/21/2022, 9:26 AMgreat-optician-87198
12/29/2022, 11:57 AMlemon-wall-20836
12/29/2022, 1:24 PMlate-cartoon-17585
01/02/2023, 10:42 PMlate-cartoon-17585
01/02/2023, 10:54 PMrhythmic-minister-80564
01/03/2023, 8:48 AMtimezone
column that stores the timezone. Is it possible to render the date_time field based on each record's timezone?straight-mechanic-78430
01/03/2023, 3:40 PMstraight-mechanic-78430
01/03/2023, 3:43 PMstraight-mechanic-78430
01/03/2023, 3:44 PMstraight-mechanic-78430
01/03/2023, 3:44 PMlemon-wall-20836
01/03/2023, 4:08 PMworried-machine-9922
01/03/2023, 5:46 PMlemon-wall-20836
01/03/2023, 6:01 PMlate-cartoon-17585
01/03/2023, 6:14 PMhide_on
but to disable fields/make them read only?lemon-wall-20836
01/03/2023, 6:14 PMlate-cartoon-17585
01/03/2023, 6:33 PMstrong-restaurant-36788
01/04/2023, 9:04 PMstraight-mechanic-78430
01/09/2023, 12:28 PMstraight-mechanic-78430
01/09/2023, 12:28 PMgreat-optician-87198
01/10/2023, 10:29 AMpolicy/admin/resource_policy.rb
for now I do this by manually specifying the policy in my resourcestraight-mechanic-78430
01/10/2023, 2:16 PMlemon-wall-20836
01/10/2023, 2:59 PMstraight-mechanic-78430
01/12/2023, 12:31 PMrhythmic-minister-80564
01/13/2023, 8:34 AMaction
.
So I generated an action with the generator, and registered it in my resource by adding action MyAction
. But the action button doesn't show up on the index page. I wonder if I missed any configuration steps? Thanks in advance πnutritious-ice-31766
01/13/2023, 9:27 AM