Skip to content

Commit

Permalink
config/routes.rb in test extension
Browse files Browse the repository at this point in the history
  • Loading branch information
will-r committed Sep 22, 2010
1 parent 6db3d2d commit 6143615
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 1 addition & 6 deletions test/fixtures/extensions/basic/basic_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ class BasicExtension < Radiant::Extension
version "1.1"
description "just a test"
url "http://test.com"

define_routes do |map|
map.connect '/your/routing', :controller => 'basic_extension', :action => 'routing'
# map.connect ':controller/:action'
end


def activate
tab 'Content' do
add_item("Basic Extension Tab", "/admin/basic", :before => 'Pages')
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/extensions/basic/config/routes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ActionController::Routing::Routes.draw do |map|
map.connect '/your/routing', :controller => 'basic_extension', :action => 'routing'
end

0 comments on commit 6143615

Please sign in to comment.