realtime preview is working. but save to object when preview

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-04-23 14:06:37 +08:00
1 parent 8cc0611c4a
commit 1b70852ff7
11 files changed
+111 -43

No files matched your search

+6 -1
View File
@@ -38,7 +38,7 @@ en:
sure?: Are you sure?
update: Update
yes_: "Yes"
admin:
action: Action
ad_banner: AD Banner
@@ -176,3 +176,8 @@ en:
role: User role
panel:
modal:
close: Close
preview: Preview
+3
View File
@@ -388,3 +388,6 @@ zh_tw:
create: "新增%{model}"
update: "更新%{model}"
submit: "儲存%{model}"
modal:
close: "關閉"
preview: "預覽"
+3 -1
View File
@@ -26,7 +26,9 @@ Orbit::Application.routes.draw do
resources :ad_banners do
match 'preview/:id' => 'ad_banners#realtime_preview',:as => :realtime_preview,:via => :put
member do
match 'preivew' => 'ad_banners#realtime_preview',:as => :realtime_preview,:via => :put
end
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