SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Routing Error - No route matches

    Hello, I have set up Instant rails and just created a new Rails project.
    I generated a scaffold, and tried to access it from localhost:3000/flight where flight is the name of the scaffold I generated. I get this error:
    Routing Error
    No route matches "/flight" with {:method=>:get}
    How do I fix this?

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Location
    Cleveland, OH
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you use scaffold you create a model, migration, and controller. The controller generated would have been in plural form. Your url would be http://localhost:3000/flights


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •