render(:partial => 'random_tip', :object => Tip.find(:first, :order => 'rand()') Then in _random_tip.rhtml: <%= @random_tip %>