Ruby on Rails Friday, January 10, 2014

On Fri, Jan 10, 2014 at 7:02 AM, Avi <aavinash.behera@gmail.com> wrote:

> // How should I again assign the col_index to '0' again,

Take a look at the % (modulus) operator.

-Dave

--
Dave Aronson, the T. Rex of Codosaurus LLC (codosaur.us),
freelance software developer, and creator of these sites:
PullRequestRoulette.com, blog.codosaur.us, & Dare2XL.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHxKQig7s04DaA4bj_2Ftnr%2BdxhqaK1chSSAu-c6B8R7jascbw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment