belongs to - inherited_resources and multiple belongs_to without nesting -
let's down brass tacks.
rails: 2.3.11
i have controller using inherited_resources reference 2 separate , non-nested resources.
my controller shown:
class tools::deploymentlinescontroller < toolscontroller inherit_resources belongs_to :deployment belongs_to :ticket end#tools::deploymentlinescontroller
however, inherit_resources
assuming belongs_to :ticket
nested resource of deployment
.
is there way of using 2 belongs_to
in controller without nesting? or need write out own business logic account missing inherited_resources association?
you should able use:
belongs_to :deployment, :ticket
Comments
Post a Comment