Jens Kraemer wrote: >> has_many :documents, :through => :document_topics >> @document.topic_ids = @topics > actually I wonder if this works at all - I'd be surprised if you can > assign ids to a has_many :through relationship like that.
Yep. It works. > However you could try this: > > @document.disable_ferret > if @document.update_attributes(params[:document]) > @document.ferret_update > flash[:notice] = 'Document was successfully updated.' > redirect_to :action => 'show', :id => @document > else > render :action => 'edit' > end > end > I get the error below. Do I need to include anything at the top of my controller for this to work? == undefined method `disable_ferret' for nil:NilClass == -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

