Thread: No routes match

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0

    Question No routes match


    Hello all,

    I have a very simple problem.

    did anyone follow the tutorial on ruby on the web site "tutorials point"? (I cannot post the url)


    I followed it (my application is about questions rather than books), and when I tap the url:

    http://localhost:3000/question/list

    I have this error in my browser:



    Code:
    Routing Error
    
    No route matches "/question/list"
    I have a class "Question" in my apps/model folder, and I have a file question_controller.rb under apps/controller.

    I didn't touch my routes.rb file, because the tutorial didn't ask to.

    What is missing?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0
    Hello,

    it works now.

    I had to uncomment this line in my routes.rb:


    Code:
    match ':controller(/:action(/:id(.:format)))'

IMN logo majestic logo threadwatch logo seochat tools logo