Forum: Ruby on Rails Many renders in one 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.
F639e0cdf2fa098b535d6ec766b2aee1?d=identicon&s=25 Szymon Nowak (g0nzo)
on 2006-03-08 15:12
Hi!

This was probably asked many times, but i can't find it anywhere.

How to render in my view many actions (sometimes from different
controllers)?
So i.e. I will have user status/login form at the top, form for
creating/editing some data on the left and a list of these data elements
on the right and some other things at the bottom?

Can i put some of this stuff to the layout? So i will always have login
form or, if user is logged in, his status at the top?
49e98c4a13a5203ecff5d2d0774f8991?d=identicon&s=25 Matthijs Langenberg (Guest)
on 2006-03-08 17:33
(Received via mailing list)
You can use render_component() for stuff like that.
F639e0cdf2fa098b535d6ec766b2aee1?d=identicon&s=25 Szymon Nowak (g0nzo)
on 2006-03-08 18:03
Thanks!!!

There are so many ~render methods, that i feel a bit overwhelmed :)
49e98c4a13a5203ecff5d2d0774f8991?d=identicon&s=25 Matthijs Langenberg (Guest)
on 2006-03-08 19:02
(Received via mailing list)
I'm sure you're not the only one, I also needed to look it up in the
rails
book first.
But now that I'm also aware of it, I might use it in an application I'm
currently building.
This topic is locked and can not be replied to.