I have the following code:
for attribute in site.device_attributes device.attribute end
where I would like the code to substitute the value o
Matt and Maxim are both correct, but leave out a detail that might help you get your head around the #send syntax: In Ruby, calling a method is really sending a message. Softies on Rails has a relatively straightforward explanation of that.