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 188.8.131.52 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" <email@example.com>
Subject: Parent::Children controller
Date: Sun, 31 Dec 2006 00:50:26 -0800
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)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
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:
Everything working till here. But I would like to display a blog
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!