I’m trying to work with controller Namespace of Route.
i’m doing with instructions in :
and here is code of my Route:
namespace :admin do
resources :users
end
I created admin folder and move controller users_controller to it.
And I edit code in users_controller same as :
class Admin::UsersController < ApplicationController
But when I ran project and using Url:
http://localhost:3000/admin/users/new
and have error:
Missing template admin/users/new, application/new with {:locale=>[:en],
:formats=>[:html], :handlers=>[:erb, :builder, :coffee]}.
Who can help me this problem ? Thanks…