ActionController::RoutingError (undefined method `has_many' for

I am getting an error with Rails 3.0.3

ActionController::RoutingError (undefined method `has_many’ for
ParentsController:Class): app/controllers/parents_controller.rb:3

on that line I have
has_many :children

I have a corresponding belongs_to line in the ChildrenController
class.

I am not trying to do anything fancy here, just establishing a simple
one to many relationship. Any suggestions as to what I might be doing
wrong?

Thanks,
Carl

On Jan 16, 9:28am, cthorner [email protected] wrote:

on that line I have
has_many :children

I have a corresponding belongs_to line in the ChildrenController
class.

I am not trying to do anything fancy here, just establishing a simple
one to many relationship. Any suggestions as to what I might be doing
wrong?

Relationships like that are specified in models, not controllers

Fred

Thanks

On Jan 16, 4:11am, Frederick C. [email protected]