I am currently developing my own website through ruby-on-rails. I am a beginner so I imported a "template" from "HTML5UP" into "PUBLIC" folder and working on it. I copied one of htmls, named "no-sidebar.html" from the template and created "no-sidebar.html.1.html" and when I run my project, I got an error messate like as below:
No route matches [GET] "/no-sidebar.1.htm"
Rails.root: /home/ubuntu/workspace
Application Trace | Framework Trace | Full Trace
Routes
Routes match in priority from top to bottom
You don't have any routes defined! •Please add some routes in config/routes.rb. • For more information about routes, please see the Rails guide Rails Routing from the Outside In.
I think I should add something to the routes but I do not know how I can make it. Please give me some advice..
By the way, I did not create any blog on my ruby-on-rails because I have been only using the template imported from HTML5UP site into the public folder. Should I still create a blog even if I use the template?
Thank you for reading my question and hope to find your advice soon.
All the best, MJ
Aucun commentaire:
Enregistrer un commentaire