[Rails] Re: Scaffolding in a sub-directory on Rails 2.x

2009-08-08 Thread James West
Sijo Kg wrote: Hi 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

[Rails] Re: Scaffolding in a sub-directory on Rails 2.x

2009-08-07 Thread Sijo Kg
Hi you can do like ./script/generate scaffold Admin::Publisher 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)

[Rails] Re: Scaffolding in a sub-directory on Rails 2.x

2009-08-07 Thread Christian Ricardo MarroquĂ­n
Thanks Sijo, I followed your instructions but there's another error I got Routing Error No route matches /admin/publisher with {:method=:get} Do you know a way to get rid of it...?? Thanks 2009/8/7 Sijo Kg rails-mailing-l...@andreas-s.net Hi you can do like ./script/generate scaffold

[Rails] Re: Scaffolding in a sub-directory on Rails 2.x

2009-08-07 Thread Sijo Kg
Hi 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 Sijo --