Commit ee22f4fc authored by John Noel's avatar John Noel

Updated routes

parent c20af6ef
...@@ -3,7 +3,9 @@ Rails.application.routes.draw do ...@@ -3,7 +3,9 @@ Rails.application.routes.draw do
devise_for :users devise_for :users
devise_scope :user do devise_scope :user do
authenticated :user do authenticated :user do
resources :posts resources :posts do
resources :comments, only: [:new, :create]
end
root to: 'posts#index', as: :authenticated_root root to: 'posts#index', as: :authenticated_root
end end
unauthenticated :user do unauthenticated :user do
......
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