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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 24 Nov 2008, at 10:49, Smarty 2k wrote:> > hi friends.... > > please help me!!!! > > for (int i=0; i < total; ++i) > { > // do something here > @blogid=params[:blog][:s.id] # multiple row > } > > Convert Ruby loopshttp://www.zenspider.com/Languages/Ruby/QuickRef.html#23 Get yourself a ruby book, there several free ones (http://www.humblelittlerubybook.com/ , 1st edition of Programming Ruby (only covers 1.6 but the basics are still the same) Fred> > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Smarty 2k wrote:> 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 >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.techotopia.com/index.php/Looping_with_for_and_the_Ruby_Looping_Methods Cheers, Mohit. 11/24/2008 | 7:14 PM. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---