Sha256: 3a47339fc88e16217ea99da5ad1473354b3d1b0d8ac853f128d786c1eab69774
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
Almanac::Engine.routes.draw do root :to => "posts#index" match "new_blog" => "blogs#new", :as => "new_blog" resources :blogs do member do get "spam" => "blogs#spam" end end 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 ":id" => "posts#destroy", :as => "post", :via => :delete resources :posts do resources :images resources :comments end get 'tags/:tag_name', :to => "posts#tag", :as => "tag" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
almanac-0.4.4 | config/routes.rb |