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

    lemon-wall-20836

    02/03/2022, 6:54 AM
    better docs for authorization
  • c

    cool-boots-75303

    02/03/2022, 2:29 PM
    Howdy, I'm trying out Avo and I'm runnning into an issue with models with more than one word in it. e.g. I have a model named WorkorderIssueType, when i tried to edit and save, I get this error: param is missing or the value is empty: workorder_issue_type.
  • l

    lemon-wall-20836

    02/03/2022, 2:30 PM
    hey @User. yeah, we are aware about that issue and it was fixed but not released yat
  • c

    cool-boots-75303

    02/03/2022, 2:30 PM
    When I look at the field it generated in the edit view, it looks like it is generating it as workorderissuetype[value] instead of workorder_issue_type[value]
  • l

    lemon-wall-20836

    02/03/2022, 2:30 PM
    can you use version
    1.19.1.pre.6
    until monday?
  • l

    lemon-wall-20836

    02/03/2022, 2:30 PM
    this versionπŸ‘† has the fix in it
  • c

    cool-boots-75303

    02/03/2022, 2:31 PM
    Sure, the app I want to use it on is not in production yet. Trying to find an admin to use.
  • l

    lemon-wall-20836

    02/03/2022, 2:31 PM
    use this in your Gemfile
    gem 'avo', '1.19.1.pre.6'
  • l

    lemon-wall-20836

    02/03/2022, 2:31 PM
    cool!
  • c

    cool-boots-75303

    02/03/2022, 2:32 PM
    so far yours in winning because it isn't causing issues with cssbundling πŸ™‚ Rails admin, trestle, etc all want me to add sassc-rails and that breaks my entire app lol
  • l

    lemon-wall-20836

    02/03/2022, 2:33 PM
    ☺️
  • l

    lemon-wall-20836

    02/03/2022, 2:33 PM
    :))
  • l

    lemon-wall-20836

    02/03/2022, 2:33 PM
    that's amazing to hear
  • l

    lemon-wall-20836

    02/03/2022, 2:33 PM
    we worked a lot to abstract away the asset pipeline and to make it as smooth as possible
  • c

    cool-boots-75303

    02/03/2022, 2:33 PM
    yeah i heard you talk about that on rails with jason, so your hard word paid off it seems πŸ™‚
  • l

    lemon-wall-20836

    02/03/2022, 2:34 PM
    yeah. jason was very cool have me on his podcast
  • c

    cool-boots-75303

    02/03/2022, 2:40 PM
    I get new error with the prerelease πŸ™‚
  • c

    cool-boots-75303

    02/03/2022, 2:40 PM
    Asset
    avo/logo.png
    was not declared to be precompiled in production. Declare links to your assets in
    app/assets/config/manifest.js
    . //= link avo/logo.png and restart your server
  • l

    lemon-wall-20836

    02/03/2022, 2:41 PM
    ok. on it
  • l

    lemon-wall-20836

    02/03/2022, 2:42 PM
    just until we figure this out
  • l

    lemon-wall-20836

    02/03/2022, 2:42 PM
    ... so you can further test it out
  • l

    lemon-wall-20836

    02/03/2022, 2:42 PM
    can you place this in a
    /avo
    dir where your images live?
  • c

    cool-boots-75303

    02/03/2022, 2:48 PM
    Thank you, all is well now!
  • i

    important-terabyte-39911

    02/03/2022, 3:00 PM
    Is there any chance we can add a method to the Avo's ApplicationController ? I need to create a method
    current_organization
    that would return the correct
    Organization
    model depending on the request's subdomain. But I don't find where to put that in avo
  • l

    lemon-wall-20836

    02/03/2022, 3:02 PM
    I think you could use
    context
  • l

    lemon-wall-20836

    02/03/2022, 3:03 PM
    https://docs.avohq.io/1.0/customization.html#context
  • l

    lemon-wall-20836

    02/03/2022, 3:03 PM
    the context is a block that get's evaluated in the
    ApplicationController
  • l

    lemon-wall-20836

    02/03/2022, 3:06 PM
    would you be able to find the organizaiton like that?
  • l

    lemon-wall-20836

    02/03/2022, 3:09 PM
    after you set the context block in the initializer, you need to restart the server and then you can use it like
    Avo::App.context
  • l

    lemon-wall-20836

    02/03/2022, 3:27 PM
    @User the issue is fixed in
    1.19.1.pre.9
    . you can remove the logo above πŸ‘†
1...242526...64Latest