Hi there, thanks for the reply. The actions are defined in index of ApplicationController. There is no error message, simply that the code within index is not invoked.
I ran in production mode locally, and it indeed gives the same error. I checked the routes and they are the same, after running rake routes. Also I'm running rails 2.3.8 It doesn't appear that code should be used in the index method of Action Controller... On Oct 29, 4:00 pm, Chris Hanks <[email protected]> wrote: > Can you explain what is actually happening? Is there an error message? > > Also, actions aren't typically defined in the ApplicationController, > so I wouldn't be surprised if putting them there makes things iffy. > > You can try running your app in production mode on your local machine > is order to see whether the problem is the environment or Heroku (try > "rails s production" at the command line). > > On Oct 29, 12:33 pm, Cris <[email protected]> wrote: > > > > > > > > > I should have also added the routing problems occur in the production > > environment (on heroku) but not in dev environment. > > > Thanks > > > On Oct 29, 2:15 pm, Cris <[email protected]> wrote: > > > > Hi there, I'm having problems with routing in my heroku environment > > > heroku. > > > > I have this redirect in the index method of the application > > > controller. > > > > class ApplicationController < ActionController::Base > > > > ..... > > > > def index > > > > redirect_to root_url > > > > end > > > > end > > > > this works perfectly in my local environment yet in heroku it fails > > > (does not get redirectly). All other routing is functioning correctly, > > > all except for the index method of ApplicationController. Is there > > > something that is causing this in the heroku environment that I have > > > overlooked? Thanks in advance, I'm new to the heroku environment. > > > > Thanks, > > > > Cris -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
