jnunemaker/twitter — Issue #202: Undefined Method "Text"
Author: IanMitchell
Created: 2011-10-18 18:46:07+00:00
State: open

I'm new to the gem (and ruby), so I might be using the gem incorrectly, but I've been getting problems with the following block of code:

```ruby
#twitter
- cache("tweets", :expires_in => 1.minute) do
- @twitter = Twitter.user("Gem")
%p= raw auto_link(@twitter.status.text)
= link_to image_tag(@twitter.profile_image_url), 'http://twitter.com/' + @twitter.screen_name
````
The code results in a "undefined method `text' for nil:NilClass" half the time, and works beautifully the other half. From my limited debugging ability, it pulls everything but the status from twitter correctly.