Those are basically your two options... 

Based on just what you've told us, an if statement inside a layout to choose 
which partial seems like the logical way to do it. 

Also note you can render using a variable
<%= render :partial => @what_to_render %>

then you can se @what_to_render in your controller if you want. it kind of all 
depends on where the "decisioning" logic comes from 


On May 26, 2011, at 5:20 PM, egervari wrote:

> I guess I could pass in a variable into a partial to switch it... but
> that seems like the wrong solution... no? I guess it'll have to do.
> Just not what I expected.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to