Cannot Go Forward on Display All Tags


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

I cannot go forward. Is it the "welcome" that is the problem? I have
copied the rest from Forum answers.


Associations 1 "bundle install Gemsfile" works but wont continue

Hey @robinlrandall,

This part:

def index
  @tags = Tag.all

is in the wrong file. Those three lines belong in app/controllers/tags_controller.rb :slight_smile:


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?

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.