Get value from array

Hi,

Ive got an array, and when I run @aArray.inspect in the view it outputs
[#“45”, “id”=>“1”}>]

how can I just output the number 45?

thanks
dave

dave wrote:

Hi,

Ive got an array, and when I run @aArray.inspect in the view it outputs
[#“45”, “id”=>“1”}>]

how can I just output the number 45?

thanks
dave

dont worry found it,
<%[email protected][0][‘sum(software_keys.number_of_users)’]%>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs