Your controllers shouldn't need to know the mechanics of searching freebase.  Instead you should create a "service object" that handles it.

Your controller would look something like this:
```ruby

def generate_results
   freebase = FreebaseSearchService.new(company_name)
   return freebase.search
end
```