Topic: Rails 3 Namedspace Controller Scaffold with a Simple Model

Hi there,

i'm trying to create a namedspace controller with scaffold, but I don't
want my model to be under the namespace. Is there any way to do it?

rails g scaffold admin/user

Thanks in advance,
David Sousa

Re: Rails 3 Namedspace Controller Scaffold with a Simple Model

This blog is old but it still applies and I use it all the time. Applies to any namespace ot just admin and works really well
http://icebergist.com/posts/restful-adm … caffolding

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: Rails 3 Namedspace Controller Scaffold with a Simple Model

Hi James,

I have saw it before I posted. I was hoping to have a better and more direct solution.
But I'll use it for now.

Tks,
DS

Re: Rails 3 Namedspace Controller Scaffold with a Simple Model

It really is the best solution that I have found, yes there are a few coding changes that need to be made but once you get familiar it only takes a few minutes to do.
There's onl;y one ommision - Read the comments regarding the xml location.

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)