redirect_to causing problems at Dreamhost-ed site
I’ve developed a simple Rails blog application that I’m hosting with Dreamhost. I have a login page which allows the blog administrator, i.e. me, to login and create new blog posts, etc. At the moment I’m having a problem with the login page which has a form asking for username and password and a submit button.
I think that the problem I am getting is centred around a ‘redirect_to’ call. Basically, when my application acknowledges a successful login a ‘redirect_to’ command should redirect the browser to the main blog admin. page. Most of the time this doesn’t happen and instead I am seeing a dialogue box in Firefox stating, “You have chosen to open blog which is a: BIN file”. “blog” is the name of the admin. page I’m trying to access.
I’ve tried accessing the site using MS Explorer which gives a dialogue box which mentions an application/octet-stream.
Does anyone have any ideas?
This is the first site I've hosted and the site works absolutely fine locally. I've posted on a number of dedicated Rails forums and haven't really got anywhere. The problem does not occur consistently and occurs in both MSIE and Firefox. I've tried Dreamhost tech. support and they seem to think that the servers are configured properly.
One thing I feel I should mention is that I've had to create new map.connect entries in my routes.rb file so that some of the pages are located correctly. On my local copy I had some routes set-up but I didn't have to define every single route. Not sure why that is.