Create a gist now

Instantly share code, notes, and snippets.

picture = a.pictures.select{ |picture| picture.name == 'test' }.first
picture.name = 'testtesttest'
a.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment