Need help to add auto_complete in Rails with Solr


I am working on a Rails project that needs to add auto_complete feature.
My rail application is also using Solr for text searching. I know that
plugin auto_complete can be used in the rails application to add the
function and also there are analyzers to add the same functionality to
Solr. Now my problem is that I need to add autocomplete to both Solr and
Rails application and integrate them so as to get the feature of
auto_complete in my project.

Can anyone provide any help in this regards???