Assiging values in Ruby using PHP equivalent for loop (I'm using Ruby on Rails) -


i have unsolved issue on stackoverflow suspect due incorrect syntax of loop on ruby language.

i ask equivalent of following in ruby:

for ($x = 0; $x <= 10; $x++) {   $array[] = $x; } 

thanks in advanced helping! please me solve initial question in link above. many thanks!


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -