Thanks for this info!!

Just having this in my environment.rb was not enough.

require 'acts_as_ferret'
ActsAsFerret.index_dir = "#{RAILS_ROOT}/tmp/index"

I added it to my production.rb as well and it started working.
Bizarre!  This should really be documented better.  thanks again!

On Jun 3, 5:44 am, Shane Mingins <[email protected]> wrote:
> You need to add it to the config file you are using.
>
> In my case, staging.rb
>
> $herokuconfig
> RACK_ENV => staging
>
> Which was the problem as I was adding it to production.rb :-(
>
> so in staging.rb I added:
>
> #http://docs.heroku.com/full-text-indexing
> require 'acts_as_ferret'
> ActsAsFerret.index_dir = "#{RAILS_ROOT}/tmp/index"
>
> and in environment.rb
>
>   config.gem "ferret"
>   config.gem "acts_as_ferret"
>
> and all was well :-)
>
> 2009/6/3 Luis Martín Vallejo <[email protected]>:
>
>
>
> > Perhaps this is an stupid question, but, Is "requiredacts_as_ferret" added
> > in the "environment.rb" of theHerokurepository?
>
> > Cheers,
>
> > On Wed, Jun 3, 2009 at 3:28 AM, Shane Mingins <[email protected]>
> > wrote:
>
> >> Hi
>
> >> I just added using ferret andacts_as_ferretto my app using these
> >> instructions:http://docs.heroku.com/full-text-indexing
>
> >> App is fine locally.
>
> >> But onHeroku, app fails to start up with undefined method
> >> `acts_as_ferret'
>
> >> Any thoughts on what I need to do?
>
> >> Cheers
> >> Shane
>
> >> --
> >> Shane Mingins
>
> > --
> > Martín
>
> --
> Shane Mingins
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" 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/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to