Note that there are some explanatory texts on larger screens.

plurals
  1. PONo route matches "/index". Simple issue?
    primarykey
    data
    text
    <p>New to all coding worlds and new to RoR. I have been doing a tutorial and ran into some issues last night. A friend of mine helped with a few of them. I asked a few here. And yet this one baffles me. I cannot find the issue of it.</p> <p>The page loads, it shows what needs to be shown. But when I press a link on there it results in this: </p> <pre><code> Routing Error No route matches "/index" </code></pre> <p>So I did <code>rake routes</code> and I got this</p> <pre><code>Dennis-Buizerts-MacBook-Pro:gpoff dennisbuizert$ rake routes site_index GET /site/index(.:format) {:controller=&gt;"site", :action=&gt;"index"} site_about GET /site/about(.:format) {:controller=&gt;"site", :action=&gt;"about"} site_help GET /site/help(.:format) {:controller=&gt;"site", :action=&gt;"help"} root /(.:format) {:controller=&gt;"Site", :action=&gt;"index"} </code></pre> <p>This is in my routes.rb</p> <pre><code>root :to =&gt; "Site#index" get "site/index" get "site/about" get "site/help" </code></pre> <p>I tried adding <code>map.connects</code> and <code>match</code> but that didn't seem to resolve it. And my development.log says the follow:</p> <pre><code>Started GET "/" for 127.0.0.1 at 2011-08-28 10:05:51 +0200 DEPRECATION WARNING: Disabling sessions for a single controller has been deprecated. Sessions are now lazy loaded. So if you don't access them, consider them off. You can still modify the session cookie options with request.session_options. (called from &lt;class:ApplicationController&gt; at /Users/dennisbuizert/Sites/gpoff/app/controllers/application_controller.rb:3) Processing by SiteController#index as HTML Rendered site/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started GET "/index" for 127.0.0.1 at 2011-08-28 10:05:52 +0200 ActionController::RoutingError (No route matches "/index"): Rendered /Users/dennisbuizert/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.10/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload