[Rails] Rendering partials based on conditions

Tom Mornini
Tue, 08 Aug 2006 17:03:10 -0000

On Aug 8, 2006, at 4:41 AM, Dark Ambient wrote:

> Because the layout is set up as it is, the if /else in the welcome
> doesn''t really effect output.

I''m not really clear what this problem is. It appears you''re
rendering the same partial twice, once in the layout and once
in the view, but I may be entirely misunderstanding.

> Any suggestions ?

How about putting the conditional renders into a helper?

--
-- Tom Mornini