Message from discussion
Parent::Children controller
Received: by 10.35.63.2 with SMTP id q2mr368858pyk.1167555027279;
Sun, 31 Dec 2006 00:50:27 -0800 (PST)
Received: from 201.1.153.88 by i12g2000cwa.googlegroups.com with HTTP;
Sun, 31 Dec 2006 08:50:26 +0000 (UTC)
From: "Klaus Paiva" <klaus.pa...@yahoo.com>
To: "Ruby on Rails: Talk" <rubyonrails-talk@googlegroups.com>
Subject: Parent::Children controller
Date: Sun, 31 Dec 2006 00:50:26 -0800
Message-ID: <1167555026.086402.320970@i12g2000cwa.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy),gzip(gfe),gzip(gfe)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello!
I'm creating a simple blog to test RoR. I've created an area to manage
my blog posts by using the "generate controller Admin::Posts". After
creating my actions, I can acess them by using:
http://localhost:3000/admin/posts/action_here
Everything working till here. But I would like to display a blog
overview here:
http://localhost:3000/admin/
So I've created an admin controller: "generate controller Admin" and an
"index" action. The new index action works but, the previous
posts/action_here not anymore.
I think that when I put /admin/posts on the URL and the controller
admin exists, I need to tell that I want to use the posts_controller,
not the admin_controller. Someone knows how can I do that?
Or if someone has a better idea to implement this I'll be grateful!
Thanks for your attention!