I have a Hash and need to use the value year from a variable in it The example is:
2.2.4 :001 > @values_project
=> [#<CustomValue id: 20367, customized_type: "Project", customized_id: 492, custom_field_id: 64, year: "2017">]
and I need the year
so when I try @value_hash.year
receive the error
NoMethodError: undefined method `year' for
#<ActiveRecord::Relation:0x0000000712fb18>
I don't understand why