Answer the question
In order to leave comments, you need to log in
How to remove post/new?
Hi all.
I don’t understand much logic, I seem to read everything, but I can’t understand it.
It is not difficult for anyone to give a short answer.
When creating, for example, a scaffold Post
, such routes appear
post
post/new
post/edit
и.т.д
namespace :admin do
resources :posts, :categories, :types
end
admin/post
admin/post/new
admin/post/edit
post/new
post/edit
http_basic_authenticate_with name: "admin", password: "secret"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question