SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    NC
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Routing error Recognition failed for....

    Hello,

    I've been running a bunch of rails tutorials trying to run ruby and I've always been successful when I created controllers using the ruby script/generate controller Trials. Then suddenly, when I do it in the ruby programming environment in my code branch, I get this routing error:

    Recognition failed for "/trials"

    Here's my controller that was created:
    Code:
    class TrialsController < ApplicationController def index flash[:notice] = 'This is def index trials_controller' end end
    All the other scripts are working fine on my localhost machine.

    Just don't get it

  2. #2
    SitePoint Guru Majglow's Avatar
    Join Date
    Aug 1999
    Location
    B-Town
    Posts
    645
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you edit the routes.rb file at all?
    Ohai!

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Is your source code all on one line like that in your file too? If so, use semicolons to break the statements apart.

  4. #4
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you get if you enter a path ending "/trials/index"


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
  •