config/routes.rb in almanac-0.4.5 vs config/routes.rb in almanac-0.5.0

- old
+ new

@@ -1,20 +1,23 @@ Almanac::Engine.routes.draw do root :to => "posts#index" match "new_blog" => "blogs#new", :as => "new_blog" + match "edit_blog/:id" => "blogs#edit", :as => "edit_blog" resources :blogs do member do get "spam" => "blogs#spam" end end - match "posts" => "posts#index" + match "feed" => "posts#index", :format => "rss" match ":id/edit" => "posts#edit", :as => "edit_post" match "new" => "posts#new", :as => "new_post" - match ":id" => "posts#show", :as => "post", :via => :get - match ":id" => "posts#create", :as => "post", :via => :post - match ":id" => "posts#update", :as => "post", :via => :put + match "drafts/:id" => "posts#draft", :as => "draft", :via => :get + match ":slug" => "posts#show", :as => "post", :via => :get + match "posts" => "posts#create", :as => "posts", :via => :post + match ":id" => "posts#update", :as => "posts", :via => :put + match "posts" => "posts#update", :as => "posts", :via => :put match ":id" => "posts#destroy", :as => "post", :via => :delete resources :posts do resources :images resources :comments end