On Wed, Nov 4, 2009 at 10:57 AM, andkjaer <[email protected]> wrote:
>
> Hi Fred,
> I know it's there but i dont now how to use it!
> Should I put it in a model method and use it like this:
>
> def twitter_search
>     @twitter_search = Twitter::Search.new('#rails')
> end
>
> Should I put it in the Application controller and call a before filter
> in my other controllers, where i want to  use the method?
>
> Please let me know if you know how to use it...

That's not how to use the gem. That's your application's design.
The use of the gem API is just like the examples show. Where you use
it depends on your application design and there's no one valid rule
about that.
My guess is you will be using it mostly on controllers, but it's
totally up to you!


-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to