lib/dry/web/roda/templates/flat_project/web.rb.tt in dry-web-roda-0.11.0 vs lib/dry/web/roda/templates/flat_project/web.rb.tt in dry-web-roda-0.12.0

- old
+ new

@@ -9,22 +9,24 @@ end opts[:root] = Pathname(__FILE__).join("../..").realpath.dirname use Rack::Session::Cookie, key: "<%= config[:underscored_project_name] %>.session", secret: self["settings"].session_secret + use Rack::MethodOverride plugin :csrf, raise: true plugin :dry_view plugin :error_handler plugin :flash plugin :multi_route + plugin :all_verbs route do |r| # Enable this after writing your first web/routes/ file # r.multi_route r.root do - r.view "welcome" + r.view :welcome end end error do |e| self.class[:rack_monitor].instrument(:error, exception: e)