Guest User

Untitled

a guest
Jun 22nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. xml.instruct!
  2. xml.posts(:type => "array") do
  3. @posts.each do |post|
  4. xml.post do
  5. xml.id(post.id)
  6. xml.title(post.title)
  7. xml.fulltext(post.fulltext)
  8. xml.created_at(post.created_at, :type => "datetime")
  9. xml.updated_at(post.updated_at, :type => "datetime")
  10. end
  11. end
  12. end
Add Comment
Please, Sign In to add comment