Preview now can be use at both ad_banner and ad_image,however it won't run correctly if user change its ad_banner at ad_image.
This commit is contained in:
1 parent
e353afb5ac
commit
81b0046f42
8 files changed
+11
-14
No files matched your search
+2
-4
@@ -24,15 +24,13 @@ Orbit::Application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
match 'ad_banner/:title/preivew' => 'ad_banners#realtime_preview',:as => :realtime_preview_ad_banner,:via => :put
|
||||
resources :ad_banners do
|
||||
collection do
|
||||
match 'new_ad_image' => 'ad_images#new',:as => :new_ad_image,:via => :get
|
||||
match 'new_ad_image' => 'ad_images#create',:as => :create_ad_image,:via => :post
|
||||
end
|
||||
member do
|
||||
match 'preivew' => 'ad_banners#realtime_preview',:as => :realtime_preview,:via => :put
|
||||
end
|
||||
resources :ad_images ,:except => [:show,:index]
|
||||
end
|
||||
resources :dashboards
|
||||
|
||||
Reference in new issue
Block a user