I want to have a controller/model called services_controller.rb/service.rb all went well, but then I tried to get a ''list'' view and I got this error... Message uninitialized constant ServicesController::Services Location /services/list Action list Controller services which worries me because it doesn''t say ServicesController::ApplicationController must I rename? ;-( -- Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ 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 Tue, 2007-10-16 at 14:27 -0700, Craig White wrote:> I want to have a controller/model called > services_controller.rb/service.rb > > all went well, but then I tried to get a ''list'' view and I got this > error... > > Message > uninitialized constant > ServicesController::Services > Location > /services/list > Action > list > Controller > services > > which worries me because it doesn''t say > ServicesController::ApplicationController > > must I rename? > ;-(---- no - pebkac -- Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
This most likely happened because you tried to do Services.find() instead of Service.find(). -Bill Craig White wrote:> I want to have a controller/model called > services_controller.rb/service.rb > > all went well, but then I tried to get a ''list'' view and I got this > error... > > Message > uninitialized constant > ServicesController::Services > Location > /services/list > Action > list > Controller > services > > which worries me because it doesn''t say > ServicesController::ApplicationController > > must I rename? > ;-( > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Apparently Analagous Threads
- routing namespaced controllers
- redirect_to an uncertain hash
- [ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
- [ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
- Passing a hash from the model to the view