Commit 25c85406 authored by John Noel's avatar John Noel

Added routes explaination

parent fc2cb234
Rails.application.routes.draw do
devise_for :users
resources :posts
# get '/posts', to: 'posts#index', as: :posts
# post '/posts', to: 'posts#create'
# get '/posts/new', to: 'posts#new', as: :new_post
# get '/posts/:id/edit', to: 'posts#edit', as: :edit_post
# get '/posts/:id', to: 'posts#show', as: :post
# patch '/posts/:id/', to: 'posts#update'
# delete '/posts/:id', to: 'posts#destroy'
root to: 'posts#index'
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment