Is Services a reserved word?

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 W. [email protected]

On Tue, 2007-10-16 at 14:27 -0700, Craig W. wrote:

/services/list
Action
list
Controller
services

which worries me because it doesn’t say
ServicesController::ApplicationController

must I rename?
;-(


no - pebkac


Craig W. [email protected]

This most likely happened because you tried to do Services.find()
instead of Service.find().

-Bill

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs