X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Froutes.rb;h=75eb181d1231adf4e45cdfed1e927f47412d52f4;hb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;hp=7754dd1c3cfa886b5ed17c33e10ac332d87816e2;hpb=87b29f4f401626c3b21df387cf7cd75677ea56cf;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"