Avo 2.12 for Rails - Use custom resources for has_many, fields in resource tools, and so much more

Опубликовано: 25 Март 2026
на канале: Avo
586
6

Hey everyone 👋

First of all, I want to welcome Paul to the team. He's going to be hands-on with development going forward 💪
https://github.com/Paul-Bob
We also published a contributors page where we want to thank all of our contributors for their help.
https://avo.cool/contributors

This is an exciting release 🥳 The changes brought on by v2.12 enable developers to craft richer experiences, so let's dive in!

1. Use custom fields inside resource tools
https://docs.avohq.io/2.0/resource-to...

2. Use custom resource for has_many
https://docs.avohq.io/2.0/association...

3. Add discreet_pagination option
https://docs.avohq.io/2.0/association...

4. Move resource controls to the left side
https://docs.avohq.io/2.0/association...

5. Hide sidebar on desktop

6. Add path helpers on actions

7. Bugfixes and improvements:
date and date_time can be cleared
date field does not take the offset into account
has_one field outputs all the associations
too many tabs flow out of the screen
heading fields not showing inside panels
tools cant come before fields
key value field shows "null" string instead of nothing
Trix input name broken for some resource names
authorization actions broke for some associations
overridden data attributes should take precedence
footer form buttons in the wrong place
some links think they are external when they are not
added avo_debug param
init script builds the assets
menu show/hide action is animated
changed the turbo frame failed to load state

Told you! It's a big one, but exciting. I can't wait to see what you'll build next using the new tools.

Next, we'll focus on finishing up the customizable resource controls (which I demo in the video) and improving the general stability of the framework.

There are 11 "Good first issues" ready to pick up if you have some spare time to improve your favorite platform.
https://avo.cool/good-first-issues

Release notes
https://avohq.io/releases/2.12.0

As always, please share Avo in your networks, to your peers, and subscribe to the channels.
Thank you for being awesome and for using Avo!

Adrian and Paul ✌️

https://avo.cool
https://avo.cool/chat
https://avo.cool/repo
  / avo-hq  

0:00 - Intro
0:14 - Welcome Paul to the team
0:39 - Added menu transition
0:56 - Changed the failed to load turbo frame illustration
1:29 - Add avo_debug param
2:07 - The init script builds assets
2:21 - Revert view_component dependency
2:43 - Date field wrongly subtracts time zone offsets
3:14 - Some links wrongly detected as detected
3:29 - Broken form footer buttons
3:57 - Data attributes are not averriden anymore
4:53 - Authorization actions broken for some associations
5:25 - Trix input name broken for some resource names
6:02 - KeyValue field shows "null" string instead of nothing
6:33 - Tools cant come before fields
7:00 - Heading fields not showing inside panels
7:30 - Too many tabs flow out of the screen
8:26 - has_one field outputs all the associations
8:58 - date and date_time can be cleared
9:32 - Add path helpers to actions
10:35 - Hide sidebar on desktop
11:02 - Protocol option for text field
11:47 - Resource controls on the left
12:45 - Hide pagination when few items (discreet pagination)
13:58 - Allow custom fields in resource tools
22:10 - Use custom resource for has_many field
25:02 - Preview customizable controls on show page
34:48 - Contributors page
35:16 - Good first issues ready
35:56 - Future plans
37:10 - Thank you ✌️