# Loops

**URL:** <https://www.ruby-forum.com/t/loops/153985>\
**Category:** Rails\
**Created:** [November 24, 2008, 11:49am UTC](https://www.ruby-forum.com/t/loops/153985 "2008-11-24T11:49:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@smartee](https://www.ruby-forum.com/u/smartee)\
**Post date:** [November 24, 2008, 11:49am UTC](https://www.ruby-forum.com/t/loops/153985/1 "2008-11-24T11:49:58Z")

</div>

hi friends…

please help me!!!

for (int i=0; i \< total; ++i)  
{  
// do something here  
@blogid=params[:blog][:s.id] # multiple row  
}

Convert Ruby loops

---

<div class="post-metadata">

**Author:** ![smartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@smartee](https://www.ruby-forum.com/u/smartee)\
**Post date:** [November 24, 2008, 11:57am UTC](https://www.ruby-forum.com/t/loops/153985/2 "2008-11-24T11:57:32Z")

</div>

On 24 Nov 2008, at 10:49, Smarty 2k wrote:

> Convert Ruby loops

> **[Ruby | zenspider.com | by ryan davis](https://www.zenspider.com/ruby/)**
>
> Ruby facts, opinions, source code, links, and stuff.

Get yourself a ruby book, there several free ones  
([http://www.humblelittlerubybook.com/](http://www.humblelittlerubybook.com/)  
, 1st edition of Programming Ruby (only covers 1.6 but the basics are  
still the same)

Fred

---

<div class="post-metadata">

**Author:** ![smartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@smartee](https://www.ruby-forum.com/u/smartee)\
**Post date:** [November 24, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/loops/153985/3 "2008-11-24T12:15:48Z")

</div>

Smarty 2k wrote:

> Convert Ruby loops

I’m not sure what you are trying to do, but a primer in Ruby loops will  
help, from the look of it:  
[http://www.rubyist.net/~slagell/ruby/control.html](http://www.rubyist.net/~slagell/ruby/control.html)  
[http://www.techotopia.com/index.php/Looping\_with\_for\_and\_the\_Ruby\_Looping\_Methods](http://www.techotopia.com/index.php/Looping_with_for_and_the_Ruby_Looping_Methods)

Cheers,  
Mohit.  
11/24/2008 | 7:14 PM.
