I'm on Display all Tags and have the following in routes.rb:
Rails.application.routes.draw do get 'welcome' => 'pages#home' get '/tags' => 'tags#index' def index @tags = Tag.all endend
I cannot go forward. Is it the "welcome" that is the problem? I havecopied the rest from Forum answers.
@tags = Tag.all
is in the wrong file. Those three lines belong in app/controllers/tags_controller.rb
It says "limit framework"
@robinlrandall Your code looks fine to me. What happens if you temporarily remove the whole def index ... end part, do you get past step 2 then?
def index ... end
Or, does changing /tags to tags in config/routes.rb change anything?
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.