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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -