https://avo.cool logo
Join Discord
Powered by
# avo-2
  • Good morning guys How do I configure the
    m

    microscopic-dream-82397

    06/19/2023, 1:44 PM
    Good morning, guys. How do I configure the name field in to use as the title of the Avo resource in a child table (TeamMembership), but the name field stay in the parent table (Team) , without the N+1 problem? Or how to use any field from the parent table as the title of an Avo resource from a child table? If I create a method (def name) in the child table, the N+1 problem happens!
    l
    • 2
    • 27
  • h

    high-fireman-25254

    06/19/2023, 2:31 PM
    hey @lemon-wall-20836, do you mind if I send you a friend request and talk in dm ?
  • a

    acceptable-cartoon-88076

    06/19/2023, 4:51 PM
    @lemon-wall-20836 Trying to add in avo.custom.js in my JumpstartPro based app. Followed the esbuild instructions, but am getting an error from sprockets: The asset "avo.custom.js" is not present in the asset pipeline.
  • a

    acceptable-cartoon-88076

    06/19/2023, 4:51 PM
    not at all sure why it's there.
  • a

    acceptable-cartoon-88076

    06/19/2023, 4:52 PM
    everything looks correct.
  • Solved had to add avo custom js as an
    a

    acceptable-cartoon-88076

    06/19/2023, 5:12 PM
    Solved...had to add avo.custom.js as an esbuild entry point
    l
    • 2
    • 8
  • GitHub - jerosoler/Drawflow: Simple flow...
    a

    acceptable-cartoon-88076

    06/19/2023, 5:42 PM
    If I want to add a front end library in a custom tool, like https://github.com/jerosoler/Drawflow ... what's the best way to do that to be 'Avo Friendly'?
    l
    • 2
    • 7
  • Hello first of all thank you all for the
    b

    bland-terabyte-47512

    06/20/2023, 4:31 PM
    Hello, first of all thank you all for the amazing comunity and the help. I am using a code field to display json data. But everytime I change it the data is saved as string format instead of json format. How should I change the field to parse the text before saving if the field is a code json one
    l
    • 2
    • 8
  • Are there menu helpers for individual
    a

    acceptable-cartoon-88076

    06/20/2023, 8:30 PM
    Are there menu helpers for individual tools? I see all_tools, but either I'm blind or there's nothing for individual tools
    l
    • 2
    • 2
  • also on the tools I have the sidebar
    a

    acceptable-cartoon-88076

    06/20/2023, 8:52 PM
    also on the tools ... I have the sidebar slot enabled but it's rendering under the main panel, vs next to it. (See Thread)
    • 1
    • 3
  • Adrian I know the docs aren t ready yet
    a

    acceptable-cartoon-88076

    06/20/2023, 11:00 PM
    Adrian, I know the docs aren't ready yet, but in a tool, in the tools slot, I want buttons that will interact with a stimulus controller. Do you have an example of that, or can you tell me how to set the various attributes on the html element via the a_link/a_button helpers? (and what's the difference between a_link and a_button?)
    l
    • 2
    • 13
  • Hi sorry for posting another question
    b

    bland-terabyte-47512

    06/21/2023, 10:58 AM
    Hi, sorry for posting another question too soon haha. I am having an issue and I wanted to understand if I am breaking some of AVO rules or if it's a fixable thing: I have a model let's say Person with a has_and_belongs_to_many relationship with Dog (example models because mine are complex hahah). In the index view of person, I display the dogs with the tags field. In the show view I have the has_and_belongs_to_many field instead of the tags field. The problem is that in the show field the has_and_belongs_to_many is not loaded because it tries to use the method use_resource on the tags field (that is present in the index). Is this supposed to happen? If so is it fixable (overriding any module or something)
    l
    • 2
    • 10
  • b

    bland-terabyte-47512

    06/21/2023, 10:59 AM
  • b

    bland-terabyte-47512

    06/21/2023, 10:59 AM
    This seems to happen to the has_many field too
  • hi guys
    b

    bland-terabyte-47512

    06/22/2023, 3:11 PM
    hi guys! does anyone know if this filter style is a custom component of it is included in avo? thanks in advance!
    l
    • 2
    • 8
  • Hey everyone im new but i come for help
    a

    acoustic-helmet-74196

    06/23/2023, 5:56 PM
    Hey everyone, im new, but i come for help, so im a front end engieneer and my team wants to use avo for building the UI, there's any way that i can custom the styles or add custom classes in the components to modify the UI ?
    l
    • 2
    • 17
  • Adrian M in my Jumpstart Pro app I have
    a

    acceptable-cartoon-88076

    06/23/2023, 10:02 PM
    @lemon-wall-20836 in my Jumpstart Pro app, I have a concern defined. Avo can't find that concern. I'm guessing it's an autoload issue or something that has to do with Avo being a gem? How can I fix this
    l
    • 2
    • 48
  • h

    high-fireman-25254

    06/24/2023, 3:25 PM
    hey guys, random question: did anyone manage to get more than one ticket for rails world and wants to sell it ? 🙂
  • Hi Adrian M quick question about
    n

    narrow-laptop-54609

    06/26/2023, 3:30 PM
    Hi @lemon-wall-20836 quick question about licenses, I have a client with a production and staging site, we use the staging to push and test new features, but I noticed the license is valid for only one URL correct? if so, is there a solution for type of issue? is the staging site considered another site?
    l
    • 2
    • 3
  • Nested records when creating | Avo docs
    n

    narrow-magazine-18722

    06/26/2023, 9:53 PM
    👋 Are there any good examples of a full workflow for creating associated records? For example, I have Movies, Actors and Directors. I want to create a movie & associate already existing actors and directors, or create new ones, in a single flow. I think this is the reverse of https://docs.avohq.io/2.0/recipes/nested-records-when-creating.html
    l
    • 2
    • 12
  • Hey there Came here from Twitter after
    f

    freezing-beard-36788

    06/27/2023, 11:14 AM
    Hey there! Came here from Twitter after seeing @lemon-wall-20836's tweet (apologies in advance!!) I ran into an issue when doing
    RAILS_ENV=production rails s
    and trying to edit an
    Array
    field using the
    fields as: :tags
    on the Avo resouce. The strange thing is... locally it seems to persist the tags as an Array correctly. However, on production, it doesn't. I can't seem to find a way to override the controller to do a
    binding.pry
    to see exactly what's going on. Does anyone know?
    l
    n
    • 3
    • 282
  • Adrian I m trying to use Avo for regular
    a

    acceptable-cartoon-88076

    06/27/2023, 3:02 PM
    Adrian, I'm trying to use Avo for regular users too. Is there a way to use some equivalent of 'current_user.resource.new/create'? All I see in the docs is admin focused where I could choose the User/Account/Whatever association with a dropdown box. I assume this is here, I just don't see it in the docs.
    l
    • 2
    • 31
  • Second question do ResourceTools have a
    a

    acceptable-cartoon-88076

    06/27/2023, 5:26 PM
    Second question, do ResourceTools have a controller?
    l
    • 2
    • 13
  • Hey all Was hoping to find a solution to
    m

    mammoth-notebook-46426

    06/28/2023, 2:56 PM
    Hey all! Was hoping to find a solution to my problem. Is there a way to redirect a user to the index page for the first (or any) resource they are authorized to view? For context: I 'm exposing all of my resources in the main_menu, but there are certain users that are not authorized to access the index for the first resource in the menu. Because of this, when the users above visit the root_path (which is set to
    /admin
    ), they are redirected to the index for the resource they don't have access to, then redirected to the
    root_path
    , ultimately resulting in a
    ERR_TOO_MANY_REDIRECTS
    error. I know we could add a dashboard but as of now we have no use for that. Any insight would be appreciated. Thanks!
    l
    • 2
    • 1
  • Adrian any plans to break out the menu
    a

    acceptable-cartoon-88076

    06/28/2023, 4:14 PM
    Adrian, any plans to break out the menu generation code and let it be used in other areas of the app? I need some contextual menus, and I'd love to just use the current menu builder stuff with it.
    l
    • 2
    • 51
  • a

    acceptable-cartoon-88076

    06/28/2023, 4:14 PM
    (specifically, in this case, I want to have contextual menus in a PanelComponent sidebar)
  • c

    calm-gold-48525

    06/28/2023, 8:11 PM
    I am not sure if this is a limitation, bug, user issue: searching has_many relationships from a resource with friendly id fails.
  • Parameters q global false via
    c

    calm-gold-48525

    06/28/2023, 8:12 PM
    Parameters: {"q"=>"", "global"=>"false", "via_association"=>"has_many", "via_association_id"=>"authors", "via_reflection_class"=>"Book", "via_reflection_id"=>"the-hobbit", "resource_name"=>"authors"}
    l
    • 2
    • 43
  • c

    calm-gold-48525

    06/30/2023, 3:27 PM
    Is there a standard recipe for adding nested attribute fields from a has_one relationship?
  • l

    lemon-wall-20836

    07/01/2023, 11:28 PM
    Hey everyone. I've seen your messages around here. I'm leaving from Brighton Ruby tomorrow and I'll respond as soon as I can. ✌️
1...6061626364Latest