[Rails] Error in controller Namespace of Route --Rails
I'm trying to work with controller Namespace of Route.
i'm doing with instructions in :
http://guides.rubyonrails.org/routing.html
and here is code of my Route:
namespace :admin do
resources :users
end
I created admin folder admin 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.......
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home