Hi Community,
I'm currently trying to create a blog software in rails, but I've got
a problem:
I generated scaffolding for my articles and only want administrators
to write, edit or delete articles. So I wanted to move this parts to
another, secured controller. The one controller to display articles is
called articles :), the other is also called articles, but is located
in a folder called "admin". The code looks like this:
Admin::ArticlesController < ApplicationController. This works great. I
can view the public area by http://localhost:3000/articles and the
admin area by http://localhost:3000/admin/articles. But I've got
problems with the routing: The named routes (?) generated by
map.resources :articles (e.g. edit_article_path(article),
new_article_path, and so on…) still point to the "public area",
whereas the actions aren't there. I think it's pretty a newbie
question, but how can I generate different routes so that these routes
don't point to the "public area".
Ryan,
You need to check out your site. This is the second time I've clicked
on a link you've promoted and there is simply a title with a blank
page.
Kathleen