56%, no route matches "tags"


#1

my code to make a controller is

Rails.application.routes.draw do
get "script/tags" => 'script#index'

but when i run it it gives me an error message 'No route matches "/tags" '
waht have i done wrong?


#2

Did you name your controller script?

if not, change it to "script" and see whether it works. if it does not work, see yes.

if yes, change it to the name of what codeacademy want the user to name the controller.


#3

If you didn't name your controller script, then

get "/tags" => 'tags#index'