config/routes.rb in comfy_carousel-0.0.0 vs config/routes.rb in comfy_carousel-0.0.1
- old
+ new
@@ -1,5 +1,13 @@
Rails.application.routes.draw do
-
+ namespace :admin, :path => ComfyCarousel.config.admin_route_prefix do
+ namespace :carousel do
+ resources :carousels, :except => [:show] do
+ resources :slides, :except => [:show] do
+ put :reorder, :on => :collection
+ end
+ end
+ end
+ end unless ComfyCarousel.config.admin_route_prefix.blank?
end