https://avo.cool logo
Join Discord
Powered by
# avo-2
  • c

    chilly-xylophone-87449

    02/03/2022, 5:46 PM
    not sure how i missed this in the docs, but it did the trick. thanks!
  • i

    important-terabyte-39911

    02/03/2022, 9:35 PM
    I'm getting this error when trying to create a new model, any ideas ?
    l
    • 2
    • 9
  • c

    cool-secretary-97493

    02/04/2022, 4:27 PM
    Hi, is there a tool to auto generate the dsl for the models ?
  • l

    lemon-wall-20836

    02/04/2022, 4:36 PM
    If you mean to generate the resources, then yes @User
    rails generate avo:resource User
  • a

    aloof-policeman-12560

    02/05/2022, 7:34 AM
    is there any way to change url for the license?. We are still dev mode so there can be changes in domain when we got live.
  • a

    aloof-policeman-12560

    02/05/2022, 7:36 AM
    I mean we are now on heroku for uat. so mostly using heroku urls. Do we need to change it to uat. to make it work ?
  • l

    lemon-wall-20836

    02/05/2022, 7:37 AM
    Hi. I responded to your email a few minutes ago. I’ll make the change. You can start using your license. Thanks for your purchase.
  • c

    chilly-xylophone-87449

    02/05/2022, 8:38 PM
    Is there any way to modify the fields that show on a has_many?
    l
    • 2
    • 10
  • l

    lemon-wall-20836

    02/06/2022, 11:51 AM
    Has many support
  • a

    aloof-policeman-12560

    02/06/2022, 4:54 PM
    How can we hide create new buttons for some items?.
  • l

    lemon-wall-20836

    02/06/2022, 4:55 PM
    Hey hey
  • l

    lemon-wall-20836

    02/06/2022, 4:55 PM
    https://docs.avohq.io/1.0/faq.html#show-hide-buttons-throughout-the-admin
  • a

    aloof-policeman-12560

    02/06/2022, 4:55 PM
    uuh sorry i missed it. Thanks alot. I was finding under customization section
  • l

    lemon-wall-20836

    02/06/2022, 4:56 PM
    Makes sense to look in there too. Will update that aection to link to the FAQ
  • l

    lemon-wall-20836

    02/06/2022, 4:56 PM
    Thanks for the tip!
  • a

    aloof-policeman-12560

    02/06/2022, 5:02 PM
    Thank you. it works. I have one more question. Imagine if we have some custom form that need to handle complex logic. Like creating a nested resource. Example clicking on new account will need to render a form to create user object and related account object. How do you recommend to handle such scenarios? @User
  • l

    lemon-wall-20836

    02/06/2022, 5:03 PM
    I think that’s a case for custom fields
  • l

    lemon-wall-20836

    02/06/2022, 5:03 PM
    https://docs.avohq.io/1.0/custom-fields.html#generate-a-new-field
  • l

    lemon-wall-20836

    02/06/2022, 5:04 PM
    You’ll get a partial for each view and a field file where you can bootstrap it and configure options
  • a

    aloof-policeman-12560

    02/06/2022, 5:04 PM
    i see. so we will have nested custom fields like "Account field" and "User field" which each can have multiple nested fields
  • l

    lemon-wall-20836

    02/06/2022, 5:05 PM
    Yes. That should be possible
  • a

    aloof-policeman-12560

    02/06/2022, 5:08 PM
    Thank you. This is my first time trying avo. ha ha please bear with me. I am using jumpstart pro + avo pro and its very easy to bootstrap application
  • l

    lemon-wall-20836

    02/06/2022, 5:09 PM
    No problem! Glad to hear it helps.
  • h

    helpful-microphone-19711

    02/08/2022, 6:27 PM
    @User The new association policy checks are awesome! Thanks so much for adding this. Right now it looks like the
    create_{associations}?
    check is always receiving the model class instead of a model instance. Would it be possible to allow for per-resource authorization?
  • l

    lemon-wall-20836

    02/08/2022, 6:31 PM
    I’m AFK roght now, but I can check
  • l

    lemon-wall-20836

    02/08/2022, 6:32 PM
    I think I made this change for the regular create? method
  • l

    lemon-wall-20836

    02/08/2022, 6:32 PM
    I’ll have a look tmr
  • l

    lemon-wall-20836

    02/08/2022, 6:33 PM
    Not sure how, but I think you might be able to fetch ot from the controller. I know someone did it for the regular create method
  • l

    lemon-wall-20836

    02/08/2022, 6:49 PM
    If a
    User
    has many `Post`s, on the
    UserPolicy.create_post?
    you are getting the
    User
    class and would like the
    User
    instance. Is that right @User?
  • h

    helpful-microphone-19711

    02/08/2022, 6:49 PM
    Yep, exactly!
1...252627...64Latest