laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org
2008-Feb-07 00:07 UTC
Simple: Routing error, no route matches ...
Hi, I''m sure this is really simple and I''m missing something really obvious but maybe another pair of eyes could help. I''m getting this error: Routing Error No route matches "/super_admin/index.rhtml" with {:method=>:get} when I visit, http://mydomain.com/super_admin/index.rhtml I have these files: app/views/super_admin/index.rhtml app/controllers/super_admin_controller.rb Here''s the code in my super_admin_controller.rb file class SuperAdminController < ApplicationController def index end end If it is useful, here is my config/routes.rb file. ================begin config/routes.rb file===================================ActionController::Routing::Routes.draw do |map| map.connect '''', :controller => "register", :action => "start" map.resources :users map.resources :sessions map.signup ''/signup'', :controller => ''users'', :action => ''new'' map.login ''/login'', :controller => ''sessions'', :action => ''new'' map.logout ''/logout'', :controller => ''sessions'', :action => ''destroy'' # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: # map.connect ''products/:id'', :controller => ''catalog'', :action => ''view'' # Keep in mind you can assign values other than :controller and :action # Sample of named route: # map.purchase ''products/:id/purchase'', :controller => ''catalog'', :action => ''purchase'' # This route can be invoked with purchase_url(:id => product.id) # You can have the root of your site routed by hooking up '''' # -- just remember to delete public/index.html. # map.connect '''', :controller => "welcome" # Allow downloading Web Service WSDL as a file with an extension # instead of a file named ''wsdl'' map.connect '':controller/service.wsdl'', :action => ''wsdl'' # Install the default route as the lowest priority. map.connect '':controller/:action/:id.:format'' map.connect '':controller/:action/:id'' end ================end config/routes.rb file=================================== Anyway, any insights are greatly appreciated, - Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 6, 4:07 pm, "laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org" <laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org> wrote:> Hi, > Routing Error > No route matches "/super_admin/index.rhtml" with {:method=>:get} > > when I visit,http://mydomain.com/super_admin/index.rhtmlGiven the routes you have defined, you should wind up at the right controller/action if you visit http://mydomain.com/super_admin/index (without the .html suffix). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org
2008-Feb-09 22:14 UTC
Re: Simple: Routing error, no route matches ...
Yup, that worked. Thanks, - On Feb 6, 6:20 pm, bigbanger <bigbanger...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Feb 6, 4:07 pm, "laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org" > > <laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org> wrote: > > Hi, > > Routing Error > > No route matches "/super_admin/index.rhtml" with {:method=>:get} > > > when I visit,http://mydomain.com/super_admin/index.rhtml > > Given the routes you have defined, you should wind up at the right > controller/action if you visithttp://mydomain.com/super_admin/index > (without the .html suffix).--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---