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? -- Posted via http://www.ruby-forum.com/.
You can use render_component() for stuff like that. On 3/8/06, szymek <g0nzo@o2.pl> wrote:> 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? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060308/eb1fd9d9/attachment-0001.html
Thanks!!! There are so many ~render methods, that i feel a bit overwhelmed :) -- Posted via http://www.ruby-forum.com/.
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. On 3/8/06, szymek <g0nzo@o2.pl> wrote:> > Thanks!!! > > There are so many ~render methods, that i feel a bit overwhelmed :) > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060308/18bcf4f6/attachment.html