############################################################################### # setup ############################################################################### @posts = [ {:id => 1, :title => 'Hello there'}, {:id => 2, :title => 'Bye bye'} ] # in reality @posts would be a dataset ############################################################################### # Here's what a view might look like: ############################################################################### <% html_table @posts, :class => "rside", :id => "posts" %>