To achieve this, your publish engine should supply a 'news component',
which you can render in your views with 'render_component'. See the
Rails docs on components for more information...

- james

On 4/7/06, Nuno <[EMAIL PROTECTED]> wrote:
> Hello, I allready asked about embedding an engine view from an app view
> : using partials works fine.
>
> Now, my main app needs to ask my publish engine : give me a "news"
> block. This block of datas will be embedded in the site's main page.
> What are the news, how to retrieve and how to format them is a job for
> the engine.
>
> Unfortunately I really don't know how to achieve this. What I want to do
> is calling an engine controller (which retrieve the news, then render
> the view accordingly) from an app view.
>
>
> Embedding "black-boxed" datas from an engine in the app (or may be into
> another engine view) is certainly a common need for every engines users
> and I'm pretty sure there is an elegant solution I'm been missing.
>
> Thanks
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> engine-users mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>


--
* J *
  ~
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to