BenH wrote:
> Try this:
> words = "Kid games need to be both fun and educational. Aimed at ages
> pre-K through middle school, safe environment to discover their
> abilities and learn new skills with interactive and fun computer
> games. Our games build skills in math, logic, memory, vocabulary,
> alphabet, spelling, geography, computer skills, color identification,
> shape identification and other various problem solving. Our commitment
> to parents, teachers, and kids, is to connect earning and skill
> building with a sense of challenge, fun, and self esteem."
> 
> line_length = 10
> 
> word_arry = words.split(" ")
> 
> text = (0..(words.length / line_length)).inject([]) {|v,num| start =
> num * line_length; v << %Q{<= #{words[(start)...(start +
> line_length)].join(" ")} =>}}
> 
> text.join("\n")
> 
> 
> Shame on me...
> 
> 
> 
> On May 26, 3:45�pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-




Hi,

Thanks for taking your time out for my problem.

i tried your code but it says

undefined method `join' for "Kid games ":String

what should i do now
Thanks and Regards

-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to