Note that there are some explanatory texts on larger screens.

plurals
  1. PORouting works on dev environment, ActionController::RoutingError when pushed to Heroku
    primarykey
    data
    text
    <p>I hope someone here can help me with this issue. I am creating a static webpage on my dev environment, so my routing file has one line in it:</p> <pre><code>TeaserSite::Application.routes.draw do root :to =&gt; 'pages#home' end </code></pre> <p>On my dev environment, this single page shows up correctly. When I pushed this code to heroku, I get a 404 error at that page. Log output for heroku when I visit the root url:</p> <pre><code>2011-02-20T23:07:36-08:00 app[web.1]: Started GET "/" for 76.28.89.32 at Sun Feb 20 23:07:36 -0800 2011 2011-02-20T23:07:36-08:00 app[web.1]: 2011-02-20T23:07:36-08:00 app[web.1]: 2011-02-20T23:07:36-08:00 app[web.1]: ActionController::RoutingError (uninitialized constant PagesController): </code></pre> <p>Rails server output on my dev environment:</p> <pre><code>Started GET "/" for 127.0.0.1 at 2011-02-21 02:16:58 -0500 Processing by PagesController#home as HTML Rendered pages/home.html.erb within layouts/application (13.3ms) Completed 200 OK in 85ms (Views: 83.6ms | ActiveRecord: 0.0ms) </code></pre> <p>I checked the following StackOverflow questions for some precedence with this but nothing has helped. I don't have the right-aws gem, changing config.serve_static_assets to true did not help, and I used the "git add ." command before pushing to heroku. Anybody know what the problem could be? For starters, is there any way I can confirm that the PagesController file was actually pushed to Heroku (aside from that calling git push heroku returns "everything up to date")?</p> <p><a href="https://stackoverflow.com/questions/3085804/rails-failing-routes-in-deployment">Rails - Failing Routes in deployment</a> <a href="https://stackoverflow.com/questions/4928490/rails-production-static-files-routing-error">Rails production static files routing error</a> <a href="https://stackoverflow.com/questions/4729814/heroku-deploying-rails-application-troubles">Heroku: Deploying rails application troubles</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload