Modifications for image urls

Find and replace the urls by the file urls in DB, in the theme files and
layout.html file. Save a copy of those files under "file_orig".
This commit is contained in:
chris2tof committed 2011-09-01 19:08:45 +08:00
1 parent f78400c274
commit 9101a2921e
5 files changed
+100 -57

No files matched your search

+6 -4
View File
@@ -12,8 +12,10 @@ PrototypeR4::Application.routes.draw do
namespace :admin do
resources :assets
resources :designs do
get 'upload_package' ,:on => :collection
post 'upload_package' ,:on => :collection
collection do
get 'upload_package'
post 'upload_package'
end
member do
post 'edit_file' => 'designs#edit_file'
end
@@ -50,8 +52,8 @@ PrototypeR4::Application.routes.draw do
# routes for gridfs files
match "/gridfs/*path" => "gridfs#serve"
match "/images/*path" => "gridfs#serve_images"
match "/admin/pages/images/*path" => "gridfs#serve_images"
# match "/images/*path" => "gridfs#serve_images"
# match "/admin/pages/images/*path" => "gridfs#serve_images"
# routes for pages to generate
match '*page_name' => 'pages#show', :as => :page, :constraints => lambda{|request|