From 837ea01a34a7dddeefe8086b2c6fc28e9a14616c Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 9 Aug 2010 16:47:56 +1200 Subject: Initial commit - you can create, edit and delete a blog post and it respects the fact that it is draft or not. --- config/routes.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 config/routes.rb (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..e47fa00 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,7 @@ +ActionController::Routing::Routes.draw do |map| + map.resources :blog_posts, :as => :blog + + map.namespace(:admin, :path_prefix => 'refinery') do |admin| + admin.resources :blog_posts, :collection => {:update_positions => :post} + end +end -- cgit v1.2.3