Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does my demo app on Heroku only show the "Welcome Aboard" page
    text
    copied!<p><strong>Note:</strong> I have spent the morning carefully checking the similar questions on this subject but it has not helped.</p> <p><strong>My Question</strong></p> <p>I am following Michael Hartl's Ruby-on-Rails tutorial. The first demo app runs nicely. It shows "Welcome Aboard" and when I add /users it runs the demo app. I pushed it to Heroku and it runs there but only shows the Welcome Aboard page.Adding /users gets "The page you were looking for doesn't exist.". I did not change any routes. It seems I should be able to view my demo app at this point on Heroku. I'm surprised because the tutorial is very thorough.</p> <p><strong>Further Experiments</strong></p> <p>I deleted <code>public/index.html</code>. And removed it from git and committed it and verified with <code>git status</code>. When I try to open <code>localhost/3000</code> I get "Routing Error" as expected. When I add /users, the demo app works as expected. I did not change routes.rb. I was not instructed to in the tutorial. </p> <p>Now I push to Heroku and open my application there I now get "The page you were looking for doesn't exist." That seems right. The same as if I opened <code>localhost/3000</code> when running locally. But when I add '/users' at Heroku I still get the page error. Do I need to add a route? This is not mentioned in the tutorial (or I overlooked something).</p> <p>Thanks for help for this newbie to Rails.</p> <p><strong>More Info</strong></p> <p>I did add a route to point to <code>users/index</code> which now makes my localhost version open right up to the application without having to manually add <code>users</code> onto the URL. But when fully committed and pushed to heroku I still get a page error.</p> <p>Here is the output from rake routes:</p> <pre><code>~/Documents/demo_app: rake routes users GET /users(.:format) users#index POST /users(.:format) users#create new_user GET /users/new(.:format) users#new edit_user GET /users/:id/edit(.:format) users#edit user GET /users/:id(.:format) users#show PUT /users/:id(.:format) users#update DELETE /users/:id(.:format) users#destroy root users#index </code></pre>
 

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