Weeks later I finally got around to figuring out how to best tackle this and your suggestion was right on the money. I didn't want to let this lie without mentioning that the best bet started with that nugget from the pastie link. Thanks Nick :)
- Joel On Mon, Nov 24, 2008 at 11:41 AM, Nick Hoffman <[email protected]> wrote: > > On 2008-11-24, at 08:37, Joel Oliveira wrote: > > Hey Nick! > > > > First - thanks for the reply. > > > > Second - the reason why I'm trying to do this is to allow whatever > > type of widget model I'm creating to render its own particular > > partial, in the context of the "area" a user will place it - header, > > footer, sidebar, etc. I thought that calling a helper to weed out > > the objects for a particular "area" and then letting the model call > > its partial on its own, would be the easier way to do it, despite > > the normal MVC rules. I know it's against the rules - so I'm > > wondering if there's an easier way? > > > > Any input would be appreciated! :) > > > > Thanks! > > > > - Joel > > Hi Joel. Why not create a helper method that determines which partial > should be rendered? For example: > http://pastie.org/pastes/322615 > > -Nick > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

