I've just started the Ruby on Rails tutorial written by M. Hartl. . I've followed every step from 2.1 to 2.1.1 . So i've created the app and pushed all the changes I made to Heroku
with $ heroku create and $ git push heroku master
didn't get any errors or anything. but when i tried to view the app by clicking on the address (https://pacific-woodland-39108.herokuapp.com) i could only see "The page you were looking for doesn't exist. ". So something went wrong but i can't find what. I've been looking at similar problems for the past 3hours and tried numerous "solutions" but nothing worked. I even deleted the app and did every step that the tutorial states again. But it didn't help.
Is there somebody that can help me out?
EDIT:
I've apparently played to much with the 'heroku create' command and now i have several apps. Maybe i should delete all of them (how?) and start from scratch?
The route is is adjusted ( removed the' # ' in order to activate )
commands i used that were mentioned in one of the answers. Still doesn't work though :/
source 'https://rubygems.org'
source 'https://rubygems.org'
GEMFILE:
gem 'rails', '4.2.2'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'sqlite3', '1.3.9'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
ROUTE file:
Rails.application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
root 'welcome#index'