Re: [Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-13 Thread Alexey
On Monday, October 8, 2012 11:02:19 AM UTC+2, Brett McHargue wrote: You could check out http://objectsonrails.com/ and https://github.com/objects-on-rails/display-case - as it says, it brings together the model and context (which could be a controller) brett I do not know if i will be

[Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-12 Thread Alexey
On Monday, October 8, 2012 7:37:21 PM UTC+2, Matt Jones wrote: On Monday, 8 October 2012 01:38:22 UTC-7, Alexey wrote: 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

Re: [Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-12 Thread Alexey
On Monday, October 8, 2012 11:02:19 AM UTC+2, Brett McHargue wrote: You could check out http://objectsonrails.com/ and https://github.com/objects-on-rails/display-case - as it says, it brings together the model and context (which could be a controller) brett Thanks, i'll look into it.

[Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-08 Thread Alexey
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. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-08 Thread Matt Jones
On Monday, 8 October 2012 01:38:22 UTC-7, Alexey wrote: 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. In your example, the controller

Re: [Rails] Re: How to make a model or a model decorator aware of its controller in Rails?

2012-10-08 Thread Brett McHargue
You could check out http://objectsonrails.com/ and https://github.com/objects-on-rails/display-case - as it says, it brings together the model and context (which could be a controller) brett On Mon, Oct 8, 2012 at 9:38 AM, Alexey alexey.mura...@gmail.com wrote: I will answer myself: i think a