[Rails] Re: calling a partial from within a model / model's method?

2008-12-11 Thread Joel Oliveira
Nick Hoffman 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 it

[Rails] Re: calling a partial from within a model / model's method?

2008-11-24 Thread Joel Oliveira
would be appreciated! :) Thanks! - Joel On Sun, Nov 23, 2008 at 9:38 PM, Nick <[EMAIL PROTECTED]> wrote: > > On Nov 23, 9:31 pm, "Joel Oliveira" <[EMAIL PROTECTED]> wrote: > > Hey everyone, > > > > *snip* > > > > Thanks everyone! > &g

[Rails] calling a partial from within a model / model's method?

2008-11-23 Thread Joel Oliveira
Hey everyone, I have a model I extended w/STI to allow me to write little widgets or modules for my web-app ... that part's working well. However, I'm getting to the point where, depending on the model's type/class I would like to render a partial so that each type has it's own look/feel/content