Rails Templates

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

that’s a question or what?

Thorsten M. 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”

Blok B:

<% content of controller 1 %>

Blok C:

<% content of controller 2 %>

Grt…remco

On 5 May 2008, at 17:58, Remco S. wrote:

 <div class="brag_a"><% content of controller 1 %></div>

Blok C:

<% content of controller 2 %>

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

Block B:

<%= render :view => 'show-view', :controller => 'controller1' %>

?

On May 5, 12:58 pm, Remco S. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs