You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current generator only allows for RESTful actions. Providing something else will throw an error:
❯ lucky gen.action.browser Members::Dashboard
Could not infer route for Members::Dashboard
Got:
Members::Dashboard (missing a known resourceful action)
Expected something like:
Users::Index # Index, Show, New, Create, Edit, Update, or Delete
We should add an option to specify the HTTP method and path. If you provide a RESTful action, then it will still infer.
lucky gen.action.browser Messages::Archive get /message/:message_id/archive
would generate Messages::Archive class with get "/messages/:message_id/archive". When no path and HTTP method are provided, it would still show the error when it can't infer.
The text was updated successfully, but these errors were encountered:
The current generator only allows for RESTful actions. Providing something else will throw an error:
We should add an option to specify the HTTP method and path. If you provide a RESTful action, then it will still infer.
would generate
Messages::Archive
class withget "/messages/:message_id/archive"
. When no path and HTTP method are provided, it would still show the error when it can't infer.The text was updated successfully, but these errors were encountered: