I try to use it like this:
def twitter_search
@twitter_search = Twitter::Search.new('#rails')
end
On 3 Nov., 14:29, Leonardo Mateo <[email protected]> wrote:
> On Tue, Nov 3, 2009 at 1:50 PM, andkjaer <[email protected]> wrote:
>
> > Hi im working with the Twitter gem, suddenly i get this error:
>
> > Twitter is not a module
>
> > ------------------------------
>
> > /Users/KAN/.gem/ruby/1.8/gems/twitter-0.7.0/lib/twitter/search.rb:1
> > vendor/rails/activesupport/lib/active_support/dependencies.rb:368:in
> > `load_without_new_constant_marking'
> > vendor/rails/activesupport/lib/active_support/dependencies.rb:368:in
> > `load_file'
> > vendor/rails/activesupport/lib/active_support/dependencies.rb:507:in
> > `new_constants_in'
> > vendor/rails/activesupport/lib/active_support/dependencies.rb:367:in
> > `load_file'
> > vendor/rails/activesupport/lib/active_support/dependencies.rb:248:in
> > `require_or_load'
> > vendor/rails/activesupport/lib/active_support/dependencies.rb:413:in
> > `load_missing_constant'
> > vendor/rails/activesupport/lib/active_support/dependencies.rb:93:in
> > `const_missing'
> > app/controllers/application.rb:49:in `twitter_search'
>
> > What the problem? What does the error mean?
>
> The problem is you're trying to use Twitter as a module and it is not a
> module?
> Please post the code where you're getting the error so we can help
> you, otherwise is pretty impossible.
>
> Cheers.
>
> --
> Leonardo Mateo.
> There's no place like ~
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---