From: James Britt Date: 2009-07-09T06:29:01+09:00 Subject: Re: Help with Twitter4r Eduardo Goncalves wrote: > Hi everybody... This is my first post where with a doubt in the first > application that i am developing in ruby... I'm using Twitter4r library > and Ramaze instead of Rails. > > I think the problem is this bit of code: > > def generate > @content = '' > client = Twitter::Client.new(:login => 'myuser', :password => 'mypass') > received_messages = client.messages(:received) > received_messages.each do |f| > @content = @content + f.text + ', ' > end > end > Can you get this code to work as a stand-alone script? James -- James Britt www.jamesbritt.com - Playing with Better Toys www.ruby-doc.org - Ruby Help & Documentation www.rubystuff.com - The Ruby Store for Ruby Stuff www.neurogami.com - Smart application development