Forum: Rails Engines Embed engine view in app view ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1318309900f441172590a8b2fb9f08ca?d=identicon&s=25 Guest (Guest)
on 2006-03-25 02:44
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
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-03-25 09:46
(Received via mailing list)
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 <nugo@ocpad.com> wrote:
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> engine-users mailing list
> engine-users@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2006-03-25 10:56
(Received via mailing list)
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 Adam" <james.adam@gmail.com> wrote:

>> forum engine.
>> engine-users@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nathaniel S. H. Brown                        http://nshb.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This topic is locked and can not be replied to.