On Tue, Nov 28, 2006 at 05:47:47PM +0100, Matthew Planchant wrote:
> Jens Kraemer wrote:
> >       @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
> ==

that error means that @document (the object you call disable_ferret on)
is nil.

Jens


-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to