X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Froutes.rb;h=75eb181d1231adf4e45cdfed1e927f47412d52f4;hb=437aa336c44c74a30aeea16a06743c32747ed661;hp=7754dd1c3cfa886b5ed17c33e10ac332d87816e2;hpb=5ee23012f505ecbf4e8eed70baecf79fafb1cbd8;p=feedcatcher.git diff --git a/config/routes.rb b/config/routes.rb index 7754dd1..75eb181 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -38,12 +38,16 @@ ActionController::Routing::Routes.draw do |map| :conditions => { :method => :get }, :controller => 'feed', :action => 'show' - map.update ':feed_name', + map.update '*ignored', :conditions => { :method => :post }, - :defaults => { :feed_name => nil }, + #: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 => "feed"