Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created April 19, 2012 22:08
Show Gist options
  • Save luckyruby/2424544 to your computer and use it in GitHub Desktop.
Save luckyruby/2424544 to your computer and use it in GitHub Desktop.
xml.foo {
@response[:rates].each_with_index do |rate, rate_idx|
xml.send("rate_#{rate_idx+1}") {
xml.rate_code rate[:ratecode]
xml.base_rate rate[:base_rate]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment