dougal / acts_as_indexed

Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app
http://douglasfshearer.com/blog/rails-plugin-acts_as_indexed
MIT License
211 stars 49 forks source link

IOError #51

Closed mickfeech closed 1 year ago

mickfeech commented 11 years ago

When I add acts_as_indexed to my model with some fields I'm getting the following error, whenever I try to create new records within that model...

The process cannot access the file because another process has locked a portion of the file

app/controllers/reviews_controller.rb:52:in `create'
app/controllers/reviews_controller.rb:51:in `create'

Here are those lines...

def create
    @review = review.new(params[:review])

    respond_to do |format|
      if @review.save
      # some stuff
      end
    end
end