Skip to content

MissingActionError should show relative path instead of absolute path for suggested action #1438

Open
@timriley

Description

Right now it's returning a message like this:

     Hanami::Routes::MissingActionError:
       Could not find action with key "actions.home.show" in GsgApp::App

       To fix this, define the action class GsgApp::Actions::Home::Show in /Users/tim/Source/scratch/gsg_app/actions/home/show.rb

That file path is long and unnecessary. It should be relative from the app's root:

       To fix this, define the action class GsgApp::Actions::Home::Show in actions/home/show.rb

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      Maybe

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions