Sha256: d3552126018841508f21895f115d40fe4daa41666cf36154f8daa535b7e4a0f9

Contents?: true

Size: 572 Bytes

Versions: 4

Compression:

Stored size: 572 Bytes

Contents

Rails.application.routes.draw do
  constraints(format: :html) do
    resources :sign_ups, only: [:new, :create]
    resources :sign_ins, only: [:new, :create, :destroy]

    resources :todos,    only: [:index, :new, :create, :edit, :update, :destroy]

    resource :all_completed_todos, only: [:destroy], as: :all_completed_todos, controller: 'todos/all_completed'

    scope "todos/:todo_id" do
      resource :completed, only: [:create], as: :completed_todos, controller: 'todos/completed'
    end

    resources :users, only: [:index]
  end

  root to: 'home#show'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aldous-1.1.3 examples/basic_todo/config/routes.rb
aldous-1.1.2 examples/basic_todo/config/routes.rb
aldous-1.0.1 examples/basic_todo/config/routes.rb
aldous-1.0.0 examples/basic_todo/config/routes.rb