Sha256: edcd14c6ec3a2dd8c1129adbdfbae4dfde8c9ad36af24b4f3d2ec6d579ef9c1d

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

Crowdblog::Engine.routes.draw do

  resources :authors, only: :index

  match 'posts/:state', :to => 'posts#index',
      :constraints => { :state => /(published|drafted)/ },
      :as => 'posts_by_state',
      :via => :get

  resources :posts do
    resources :assets
  end

  root to: 'posts#index'

  devise_for :users, :class_name => 'Crowdblog::User', :module => 'crowdblog/devise'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crowdblog-0.1.3 config/routes.rb
crowdblog-0.1.2 config/routes.rb