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.
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?
Yes, Apache.
When I run the first command I get:
2202 ? 00:00:04 ruby
2219 ? 00:00:02 ruby
22014 ? 00:00:02 ruby
22807 ? 00:00:07 ruby
23139 ? 00:00:05 ruby
I wanted to ask again in regards to my original problem: where all my
admin pages are in the "admin" directory but the application thinks I
am trying to access admin controller action product instead of going
to the product controller inside the admin directory.
Because it works on my machine but not on the web server, I tried to
freeze gems and uploaded the rails directory that was created in the
vendor one.
I also still have problem with restarting the server. The support team
said to run the following commands:
ps aux | grep username
to see what processes belong to my user and then
killall -9 dispatch.fcgi
but again I get "Operation not permitted"
So, I'm still not sure why it works on my computer and not on the
server. And I still not sure how to fix it.
Would someone please have an idea of what my problem is?