Skip to content

Instantly share code, notes, and snippets.

@rangalo
Created July 29, 2010 16:34
Show Gist options
  • Select an option

  • Save rangalo/498598 to your computer and use it in GitHub Desktop.

Select an option

Save rangalo/498598 to your computer and use it in GitHub Desktop.
xml.instruct! :xml, :version => "1.0", :encoding => "UTF-8"
xml.rows do
xml.page params[:page]
xml.total (@projects.size.to_i)
xml.records @projects.size
@projects.each do |p|
xml.row :id => p.id do
xml.cell p.name
xml.cell p.start_date
xml.cell p.end_date
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment