Embed engine view in app view?


#1

Hi, I would to know of to have my app inserting an engine generated html
(view ? string ?)

Eg. the main page of the web needs to display the last messages of a
forum engine.
The forum engine have to retrieve the datas and format them.

What is the preferred solution ?

Thanks


#2

You should probably use partials for this - you can render partials
which belong to an engine in any view in your application.

  • james

On 3/25/06, Guest removed_email_address@domain.invalid wrote:


Posted via http://www.ruby-forum.com/.


engine-users mailing list
removed_email_address@domain.invalid
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

  • J *
    ~

#3

render_component might do what you see as well, as long as that action
has a
partial attached to it instead of a full view. I have done this in a few
places myself.

-Nb

On 3/25/06 12:45 AM, “James A.” removed_email_address@domain.invalid wrote:

forum engine.
removed_email_address@domain.invalid
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Nathaniel S. H. Brown                        http://nshb.net