X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Froutes.rb;h=75eb181d1231adf4e45cdfed1e927f47412d52f4;hb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;hp=4f3d9d22ddab9b76d7578df13b4c4f4ae5d91bdf;hpb=22d4a0d0027b52071d8c4242f4bd30eec2b036bf;p=feedcatcher.git diff --git a/config/routes.rb b/config/routes.rb index 4f3d9d2..75eb181 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -30,14 +30,32 @@ 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 '*ignored', + :conditions => { :method => :post }, + #:defaults => { :ignored => nil }, + :controller => 'feed', + :action => 'update' + + map.connect '*ignored', + :controller => 'feed', + :action => 'index' + # 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