search for: book_list

Displaying 2 results from an estimated 2 matches for "book_list".

Did you mean: _book_list
2008 May 25
2
storing data from a txt file in ruby?
...to write a a ruby program that takes a list of books title ,author so on and i can read in the file with no problem but im trying to store the list into either a array or hash so i ca say run different methods view, delete ect.. anyhelp would be great this is what i have so far IO.foreach("book_list.txt") do |line| catalog=line.chomp.split(",") products.store(items[0].to_i, [catalog[1],catalog[2].to_i,catalog[3].to_i) end thanks for anyhelp Gabriel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Group...
2006 Apr 25
3
how to get the count/index of the current row ?
I have a partial to which i pass a collection. That views name is _row. So row.name, row.ssn gives me the details of each object in the collection, But i need to display 1. name 123456798 2. name1 234567890 how to get that Index ??? or count or whatever in that partial ?? please help. -- Posted via http://www.ruby-forum.com/.