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

    alert-policeman-73141

    05/10/2021, 6:31 PM
    It was also happening on 1.4.4 though
  • l

    lemon-wall-20836

    05/10/2021, 6:31 PM
    can you share the action class name?
  • a

    alert-policeman-73141

    05/10/2021, 6:31 PM
    ToggleActiveMilestoneTemplateAction
  • l

    lemon-wall-20836

    05/10/2021, 6:31 PM
    hmm. I see nothing wrong here 👆
  • a

    alert-policeman-73141

    05/10/2021, 6:32 PM
    And then I register it in my resource like this
    action ToggleActiveMilestoneTemplateAction
  • l

    lemon-wall-20836

    05/10/2021, 6:32 PM
    that looks right
  • l

    lemon-wall-20836

    05/10/2021, 6:33 PM
    and what is the param (
    <my action>
    ) that it can't find here
    (No route matches [GET] "/avo/resources/<my resource>/1/actions/<my action>")
  • l

    lemon-wall-20836

    05/10/2021, 6:34 PM
    maybe it's doesn't cast it to
    underscore
    properly
  • a

    alert-policeman-73141

    05/10/2021, 6:34 PM
    ActionController::RoutingError (No route matches [GET] "/avo/resources/milestone_templates/1/actions/toggle_active_milestone_template_action"):
  • l

    lemon-wall-20836

    05/10/2021, 6:35 PM
    that looks right too
  • l

    lemon-wall-20836

    05/10/2021, 6:35 PM
    let me try replicating this
  • a

    alert-policeman-73141

    05/10/2021, 6:36 PM
    When I use the generator I still get the error too
  • a

    alert-policeman-73141

    05/10/2021, 6:36 PM
    Thanks for the help
  • l

    lemon-wall-20836

    05/10/2021, 6:36 PM
    for sure. trying to get to the bottom of this
  • l

    lemon-wall-20836

    05/10/2021, 6:37 PM
    what error are you getting when using the generator? same
    No route matches [GET]
    ?
  • l

    lemon-wall-20836

    05/10/2021, 6:38 PM
    not sure it should error with that
  • a

    alert-policeman-73141

    05/10/2021, 6:39 PM
    Well it generates the action fine but when I click on the action button in the UI it throws the error
  • l

    lemon-wall-20836

    05/10/2021, 6:39 PM
    oh. ok. I thought it raised an error when trying to use it
  • a

    alert-policeman-73141

    05/10/2021, 6:40 PM
    Yeah the generator worked well
  • l

    lemon-wall-20836

    05/10/2021, 6:44 PM
    I tried to replicate it and it works on my end. trying to think of why it wouldn't work for you
  • l

    lemon-wall-20836

    05/10/2021, 6:44 PM
    can you restart your rails server? maybe something is cached in memory?
  • l

    lemon-wall-20836

    05/10/2021, 6:46 PM
    also, to make sure I understand your scenario. you're navigating to the
    Show
    page for a resource (the browser URL is something like
    /avo/resources/milestone_templates/1
    ) you're clicking the
    Actions
    drop-down and selecting that action from the dropdown. Then you get this error
  • l

    lemon-wall-20836

    05/10/2021, 6:50 PM
    also does that record exist (the one with id
    1
    )?
  • a

    alert-policeman-73141

    05/10/2021, 7:00 PM
    Hm strange. Yep I've restarted my rails server multiple times. And yes that is the process I'm going through to get the error.
  • a

    alert-policeman-73141

    05/10/2021, 7:00 PM
    The record exists.
  • l

    lemon-wall-20836

    05/10/2021, 7:01 PM
    hmm
  • l

    lemon-wall-20836

    05/10/2021, 7:01 PM
    would you like to jump on a call and troubleshoot it together?
  • a

    alert-policeman-73141

    05/10/2021, 7:02 PM
    Sure, give me a second.
  • l

    lemon-wall-20836

    05/10/2021, 7:34 PM
    ok. we sorted that out. The actions paths were broken for a custom
    root_path
    configuration
  • l

    lemon-wall-20836

    05/10/2021, 7:34 PM
    this PR fixes it https://github.com/avo-hq/avo/pull/391
1...678...64Latest