Here the model be namespaced And if you need only controllers and
view you can do it seperately
./script/generate controller Admin::Publisher
./script/generate model Publisher
And edit routes.rb
map.namespace(:admin) do |admin|
map.resources :publishers
end
Sijo
--
Posted via http://www.ruby-forum.com/.
No route matches "/admin/publisher" with {:method=>:get} Not only doing the above solves all..You have to edit a lot of
places. Rather than I explain all these and grab a lot more spaces here
you better read this
Read section Namespaced Routes in
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial
There is a totally superb blog on this that I use all the time
http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding
Clear, concise and it works!