Hi,
I uploaded my application to the web server and every thing is working
fine besides the admin area I created. The directory’s structure is
that all the pages that are controlled by an admin are inside “admin”
directory. The admin controller basically just looks after the login
and authentication.
It has a method to check for login and redirects the user to the admin
directory and in it to the product controller.
redirect_back_or_default(:controller => ‘/admin/product’)
but what happens is that the login occurs fine but I get a 404 error,
which I don’t get on my local machine, because it works fine on my
computer.
My routes.rb has the following lines:
map.connect ‘:controller/:action/:id.:format’
map.connect ‘:controller/:action/:id’
My rails version is 1.2.3 but I’m not sure of the rails version on the
server (I’m using rails playground hosting).
Maybe the problem is that the routes don’t correctly map so Rails
thinks I want to load {:controller => “admin”, :action => “product”}
even though I really want {:controller => “admin/product”, :action =>
“index”}
Would anyone have asuggestion on how I could fix this?
TIA,
Elle