I'm trying to define attributes from an array like so:
["a", "b", "c"].each do |field|
@recipe.field = "anything"
end
I want to end up with something like this:
@store.a = "anything"
@store.b = "anything"
@store.c = "anything"
Do you know what I should do with the @store.field above? I tried @store.send(field), but that is not working for me and I have no idea what keywords to search to find a solution to the above. Any help is greatly appreciated.