Hi, I have a homepage divided in 5 blocks(css) block 1 = model/controller 1 block 2 = model/controller 2 block 3 = model/controller 3 block 4 = model/controller 4 i want that this controller are available on my homepage/blocks... remco -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
that''s a question or what? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thorsten Mueller wrote:> that''s a question or what?Below part of my homepage(/). I just want the the show-view of controller 1 placed in class="brag_a" and the index-view of controller 2 placed in class="brag_b" <h3>Blok B: </h3> <div class="brag_a"><% content of controller 1 %></div> <h3>Blok C: </h3> <div class="bra_b"><% content of controller 2 %></div> Grt..remco -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<h3>Block B: </h3> <%= render :view => ''show-view'', :controller => ''controller1'' %> ? On May 5, 12:58 pm, Remco Swoany <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Thorsten Mueller wrote: > > that''s a question or what? > > Below part of my homepage(/). I just want the the show-view of > controller 1 placed in class="brag_a" and the index-view of controller 2 > placed in class="brag_b" > > <h3>Blok B: </h3> > <div class="brag_a"><% content of controller 1 %></div> > > <h3>Blok C: </h3> > <div class="bra_b"><% content of controller 2 %></div> > > Grt..remco > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5 May 2008, at 17:58, Remco Swoany wrote:> > Thorsten Mueller wrote: >> that''s a question or what? > > Below part of my homepage(/). I just want the the show-view of > controller 1 placed in class="brag_a" and the index-view of > controller 2 > placed in class="brag_b" > > <h3>Blok B: </h3> > <div class="brag_a"><% content of controller 1 %></div> > > <h3>Blok C: </h3> > <div class="bra_b"><% content of controller 2 %></div>You''re asking for what used to be components (now deprecated). You''re better off refactoring this as a series of partials, helpers & filters. Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---