Sinatra: route doesn't route when deployed to Heroku -
In my app.rb:
route '/' Okay, I can see all the categories on the page (so my app has all the necessary information in the TechBomagCategory table). and then do not make the necessary route. When I go to any '/' + category.title page, then 404 pages arrive. What went wrong, how should I fix it? this simple Helps I think the route was unusable because this my categories table was not yet ranked.
get '/' do_categories = Category.all erb: categories end
category all. Each do | Category | Get '/' + Category.title do erb: End of end products
Note that everything works as expected on my local machine, all pages are presented perfectly properly.
hrooku restart
Comments
Post a Comment