Re: heroku routing issues
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 cristinarand...@gmail.com 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: heroku routing issues
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 cristinarand...@gmail.com 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 cristinarand...@gmail.com 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: heroku routing issues
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 christopher.m.ha...@gmail.com 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 cristinarand...@gmail.com 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 cristinarand...@gmail.com 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: heroku routing issues
Paste the full output of your output from when you run it locally in production mode into a gist (gist.github.com) and paste that here. Oren On Fri, Oct 29, 2010 at 2:40 PM, Cris cristinarand...@gmail.com wrote: 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 christopher.m.ha...@gmail.com 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 cristinarand...@gmail.com 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 cristinarand...@gmail.com 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: heroku routing issues
My advice would be to drop the index action entirely from ApplicationController, since its not very good practice (ApplicationController isn't meant to define actions - it's more for collecting before_filters and things like that). If you'd like to talk a bit more about what you're trying to do with the index action there, we can certainly give you some advice on what to replace it with. On Oct 29, 2:40 pm, Cris cristinarand...@gmail.com wrote: 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 christopher.m.ha...@gmail.com 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 cristinarand...@gmail.com 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 cristinarand...@gmail.com 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.