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).
get '/' do_categories = Category.all erb: categories end and then
category all. Each do | Category | Get '/' + Category.title do erb: End of end products do not make the necessary route. When I go to any '/' + category.title page, then 404 pages arrive.
Note that everything works as expected on my local machine, all pages are presented perfectly properly.
What went wrong, how should I fix it?
this simple
hrooku restart Helps I think the route was unusable because this my categories table was not yet ranked.
Comments
Post a Comment