Last active
August 29, 2015 14:02
-
-
Save gaboesquivel/29250eb034487f9ff0e8 to your computer and use it in GitHub Desktop.
attributes error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# t_array if fetched from and external api | |
t_array.in_groups_of(15, false) do |group| | |
group.each do |attributes| | |
T.find_or_create_by!(a_id: attributes[:a_id]) do |t| | |
t.name = attributes[:name] | |
t.other = attributes[:other] | |
end | |
end | |
end | |
# t.other = attributes[:other] -- > undefined method for a couple of objects |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment