changes for ad_banner

This commit is contained in:
chris committed 2013-10-19 19:17:04 +08:00
1 parent 19bf2f2be5
commit 92d2af13f2
45 files changed
+500 -794

No files matched your search

+5
View File
@@ -75,6 +75,11 @@ module Orbit
config.to_prepare do
Devise::RegistrationsController.layout false
end
# Remove "field_with_errors"
config.action_view.field_error_proc = Proc.new { |html_tag, instance|
html_tag.html_safe
}
end
end
Orbit_Apps = []
-2
View File
@@ -46,8 +46,6 @@ Orbit::Application.routes.draw do
match 'ad_banners/:id/preview' => 'ad_banners#realtime_preview',:as => :realtime_preview_ad_banner,:via => :put
match 'ad_banners/:id/rename' => 'ad_banners#rename',:as => :rename_ad_banner,:via => :post
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
resources :ad_images ,:except => [:show]
resources :ad_banners #do