Sha256: 7a54b59c6f9902481cff332d275d0c23fee93154d746c0b9eb92e67588c4efeb

Contents?: true

Size: 930 Bytes

Versions: 10

Compression:

Stored size: 930 Bytes

Contents

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 "feed" => "posts#index", :format => "rss"
  match ":id/edit" => "posts#edit", :as => "edit_post"
  match "new" => "posts#new", :as => "new_post"
  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
  get 'tags/:tag_name', :to => "posts#tag", :as => "tag"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
almanac-0.7.4 config/routes.rb
almanac-0.7.3 config/routes.rb
almanac-0.7.2 config/routes.rb
almanac-0.7.1 config/routes.rb
almanac-0.6.1 config/routes.rb
almanac-0.6.0 config/routes.rb
almanac-0.5.3 config/routes.rb
almanac-0.5.2 config/routes.rb
almanac-0.5.1 config/routes.rb
almanac-0.5.0 config/routes.rb