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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -