Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to make a model or a model decorator aware of its controller in Rails?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matt Jones  
View profile  
 More options Oct 8 2012, 1:37 pm
From: Matt Jones <al2o...@gmail.com>
Date: Mon, 8 Oct 2012 10:37:21 -0700 (PDT)
Local: Mon, Oct 8 2012 1:37 pm
Subject: Re: How to make a model or a model decorator aware of its controller in Rails?

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 path seems *highly* relevant to generating
HTML markup...

--Matt Jones


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.