I just started learning rails and mediumsmart so please help me out. (I did the rails guide get started tutorial). rails 5.2
I have a posts scaffold and a blog controller (and friendly_id). I want the post to show on
blog/title-of-post but I only get
posts/title-of-post. I want the new, edit and destroy functionality to stay on the posts page which is behind basic authenticate.
here is a paste of my routes.rb, rake routes output, posts and blog controller.rb: pastebin
I found this on stackoverflow which is the exact same problem but the solution
resources :posts, path: 'blog'
moves the crud over to blog as well: https://stackoverflow.com/questions/30350279/changing-the-route-from-posts-article-to-blog-article-in-rails