I have an array:
sheets # => [{"id"=>3, "subject"=>"www", "body"=>"www", "target_groups"=>"www", 0=>3, 1=>"www", 2=>"www", 3=>"www"}]
I am trying to call a certain element inside this array. I tried the following:
puts sheets[2] # => nil
puts sheets["subject"] # => `[]': can't convert String into Integer (TypeError)
puts sheets["subject.to_i"] # => `[]': can't convert String into Integer (TypeError) also.
Help would be appreciated.