For the guide that shows you how to set up a blog, I've gotten up to 5.7.
For this section it tells you how to show the article, but after following the steps I only get an error when attempting to run rails server.
It exactly says it is a syntax error in a routes line.
The line is "article get /articles/:id(.:format) articles#show" and the error is pointing to :id.
I'm not really sure what to do, I've looked at the routes section of the guide and I thought it was a valid line.
routes.rb contains
Rails.application.routes.draw do get 'welcome/index' resources :articles root 'welcome#index' article get /articles/:id(.:format) articles#show end The exact message I receive when I use the command rails server is:
blog/config/routes.rb:5: syntax error, unexpected ':', expecting keyword_end (SyntaxError) article get /articles/:id(.:format) article#show
show.html.erbfile on articles.routes.rbfile please