ruby on rails - No route matches {:action=>"index", :controller=>"categories"} -


I am stuck in the database to store all the categories for an example

instructed here Given: The body of index method for categories Write categories under the Def Index. In RB. Keep an eye out for close and end with examples. Hit the Run

Here is my code:

  Category Categories Controller & lt; ApplicationController DEF Index @ Segments = Category.All Diff Show End DEF Newf Ed Editing End DIF Def Def Def Def Def Def Def Def WhF Def Def Def Def Dff Df Index> 

What am I doing wrong?

You should add it to config / routes.rb :

  Resources: Categories  

I also suggest knowing some Rail Fundamentals


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -