Received: by 10.236.123.43 with SMTP id u31mr8267209yhh.43.1349685535899; Mon, 08 Oct 2012 01:38:55 -0700 (PDT) X-BeenThere: rubyonrails-talk@googlegroups.com Received: by 10.101.128.6 with SMTP id f6ls1231530ann.1.gmail; Mon, 08 Oct 2012 01:38:23 -0700 (PDT) Received: by 10.236.198.80 with SMTP id u56mr1612938yhn.0.1349685503195; Mon, 08 Oct 2012 01:38:23 -0700 (PDT) Date: Mon, 8 Oct 2012 01:38:22 -0700 (PDT) From: Alexey To: rubyonrails-talk@googlegroups.com Message-Id: <54b28771-91a2-4f2b-8385-63db7f283a67@googlegroups.com> In-Reply-To: References: Subject: Re: How to make a model or a model decorator aware of its controller in Rails? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_31_14774157.1349685502383" ------=_Part_31_14774157.1349685502383 Content-Type: multipart/alternative; boundary="----=_Part_32_6466317.1349685502383" ------=_Part_32_6466317.1349685502383 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I will answer myself: i think a decorator is not a good place to store an associated controller, a decorator should only know about model data and HTML markup. I am still looking for a good solution. ------=_Part_32_6466317.1349685502383 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I will answer myself: i think a decorator is not a good place to store an associated controller, a decorator should only know about model data and HTML markup.  I am still looking for a good solution. ------=_Part_32_6466317.1349685502383-- ------=_Part_31_14774157.1349685502383--