Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

Commit

Permalink
fix deprecation warning on routes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfallshaw committed Dec 21, 2010
1 parent d3fb27d commit 60701a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/routes.rb
@@ -0,0 +1,3 @@
ActionController::Routing::Routes.draw do |map|
map.connect 'admin/preview', :controller => 'preview', :action => 'show'
end
4 changes: 0 additions & 4 deletions page_preview_extension.rb
Expand Up @@ -6,10 +6,6 @@ class PagePreviewExtension < Radiant::Extension
description "Enables previewing pages from the edit screen"
url "http://github.com/tricycle/raidant-page-preview-extension/"

define_routes do |map|
map.connect 'admin/preview', :controller => 'preview', :action => 'show'
end

def activate
# admin.tabs.add "Page Preview", "/admin/page_preview", :after => "Layouts", :visibility => [:all]
admin.page.edit.add :form_bottom, "/preview/show", :before => 'edit_buttons'
Expand Down

0 comments on commit 60701a1

Please sign in to comment.