Route not working

I've added a controller 'blog/admin'. When I want to access
'blog/admin/index' it says that the page doesn't exist. It works in my
local environment. What am I missing?

I've added a controller 'blog/admin'. When I want to access
'blog/admin/index' it says that the page doesn't exist. It works in my
local environment. What am I missing?

Craig White wrote:

when you say that you've added blog/admin, the route and mechanics are
unclear.

You're right. A better way is to add a
/controller/admin/blog_controller.rb. I think I'll do that instead. More
in line with what I've done before. Thanks.

I tried /controller/blog/admin/. It works locally. I thought my
information was rather clear and hoped someone would say "aha, you're
missing ...". I don't understand why it works locally but not on the
remote server?

Pål Bergström wrote:

Craig White wrote:

when you say that you've added blog/admin, the route and mechanics are
unclear.

You're right. A better way is to add a
/controller/admin/blog_controller.rb. I think I'll do that instead. More
in line with what I've done before. Thanks.

You missed Craig's point. There's nothing wrong with the name of your
controller; rather, Craig said (and I agree) that you didn't provide
enough information for us to help. Output from rake routes might be
helpful.

I tried /controller/blog/admin/. It works locally. I thought my
information was rather clear and hoped someone would say "aha, you're
missing ...". I don't understand why it works locally but not on the
remote server?

Are your routes files different?

Best,

and this blog_controller.rb would look like...
class Admin::BlogController < ApplicationController

What about the route and map.resources?