I'm having a similar problem, but I don't think your solution works for me because I haven't overloaded any controllers.
Here are the specifics of my situation. Everything works fine on development with webrick. When I deploy to Apache 1.3 + mod_fcgi, I cannot login. Even after entering my login information, my screen returns to the login page. I've added some privileges for some controllers to the Guest role (so that I don't have to login) and I can execute that code. That tells me that the routine to check if Guest can do something still works. For some unknown reason, I cannot change my status to 'logged in'. I've set the file system privileges to the tmp directory so that anyone can write there. I've cleared out all session files, and have seen new session files appear, so I don't believe that there is a problem with session management. I thought that maybe because my deployment uses a symlink to add the Rails app to an existing web site, the routes.rb file needed to be modified. However, adding the directory to the mapping makes Rails submit to the wrong controller/action. So, I'm at a loss. Can you offer any advice? Thanks, -Anthony Steve Koppelman wrote: > SOLVED! > > Still don't know why it was working all along on one environment and not > the other, but I got completely rid of my overloading user_ and role_ > controllers and now it seems to be working. So instead of applying > before_filters on an as-needed basis, I'm going to apply it globally in > application.rb and disable it--or grant guest privs, I suppose--as > necessary. > > Ugh. > -- Posted via http://www.ruby-forum.com/. _______________________________________________ engine-users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
