Thinking_sphinx

hi all,
       I installed sphinx and thinking_sphinx correctly.But When i am
running rake thinking_sphinx:index it showing error

rake aborted!
undefined method `configuration' for Rails:Module

I can't recognize it..Plz help me.
Thanks/regards
Fisa