Working with Resource Assignments in Ruby