Added routes and forms. No update action as yet.
[feedcatcher.git] / config / routes.rb
index 4f3d9d22ddab9b76d7578df13b4c4f4ae5d91bdf..7754dd1c3cfa886b5ed17c33e10ac332d87816e2 100644 (file)
@@ -30,14 +30,28 @@ ActionController::Routing::Routes.draw do |map|
   #     admin.resources :products
   #   end
 
+  map.index 'index.:format',
+    :conditions => { :method => :get },
+    :controller => 'feed',
+    :action => 'index'
+  map.feed ':feed_name.:format',
+    :conditions => { :method => :get },
+    :controller => 'feed',
+    :action => 'show'
+  map.update ':feed_name',
+    :conditions => { :method => :post },
+    :defaults => { :feed_name => nil },
+    :controller => 'feed',
+    :action => 'update'
+
   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
-  # map.root :controller => "welcome"
+  map.root :controller => "feed"
 
   # See how all your routes lay out with "rake routes"
 
   # Install the default routes as the lowest priority.
   # Note: These default routes make all actions in every controller accessible via GET requests. You should
   # consider removing the them or commenting them out if you're using named routes and resources.
-  map.connect ':controller/:action/:id'
-  map.connect ':controller/:action/:id.:format'
+#  map.connect ':controller/:action/:id'
+#  map.connect ':controller/:action/:id.:format'
 end