hanami-router

    2熱度

    2回答

    我有賞花的應用程序版本1.0.0 我旁邊的routes.rb文件工作在application.html.erb模板中,但收到下一個錯誤: Hanami::Routing::InvalidRouteException: No route (path) could be generated for :games - please check given arguments 如何在hanami模板中使用

    5熱度

    1回答

    有沒有辦法使用地圖和(蓮花)路由器命名空間在一起?下面是一個示例config.ru我試圖讓它作爲演示運行。 require 'bundler' Bundler.require module Demo class Application def initialize @app = Rack::Builder.new do map '/this_w

    -2熱度

    1回答

    的overview documentation for routes有對象的例子被用於路由解析如get '/rack-app', to: RackApp.new,其作爲工作記錄中包含的代碼: options '/*', to: MyApp::CORSRequestHandler.new 從控制檯服務器的命令,一切都做什麼,我希望,然而,執行命令hanami routes的時候,我得到以下錯誤: