config/routes.rb in ahoy_events-0.0.1 vs config/routes.rb in ahoy_events-0.0.2
- old
+ new
@@ -1,4 +1,8 @@
-Ahoy::Engine.routes.draw do
+Rails.application.routes.draw do
+ mount AhoyEvents::Engine => "/ahoy"
+end
+
+AhoyEvents::Engine.routes.draw do
scope module: "ahoy" do
resources :events, only: [:create]
end
end