Skip to content

Instantly share code, notes, and snippets.

@dorkrawk
Created July 19, 2013 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorkrawk/6035281 to your computer and use it in GitHub Desktop.
Save dorkrawk/6035281 to your computer and use it in GitHub Desktop.
Possible long ugly way to get a "field name" => "field value" hash from a Lawn Tent field set.
fs.project.template.fields.map{ |x| fs.field_values.select{|fv| fv.field == x }.map{|fv| {x.name => fv.string_value}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment