title: 'Stack level too deep' error in engine-like plugin with globalize
body: <p>I have built an engine-like plugin thanks to the new features of Rails 2.3. It's a 'Product' module for a CMS, extrapolated from a previously existing (and working) model/controller.
  The plugin relies on easy_fckeditor and on globalize (description and title field are localised), and I suspect that globalized could be the culprit here...
  Everything works fine, except for the update action.
  I get the following error message: (posting just the first lines, all the message is about attribute_methods)</p>
  
  <pre><code>stack level too deep
  
  /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/attribute_methods.rb:64:in `generated_methods?'
  /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/attribute_methods.rb:241:in `method_missing'
  /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/attribute_methods.rb:249:in `method_missing'
  </code></pre>
  
  <p>For referenze, the full error stack is here: <a href="http://pastie.org/596546" rel="nofollow noreferrer">http://pastie.org/596546</a></p>
  
  <p>I've tried to debug eliminating all the input fields, one by one, but I keep getting the error. fckeditor doesn't seem the culprit (error even without fckeditor)</p>
  
  <p>This is the action: </p>
  
  <pre><code>def update
    params[:product][:term_ids]  ||= [] 
    @product = Product.find(params[:id])
    respond_to do |format|
      if @product.update_attributes(params[:product]) 
      flash[:notice] = t(:Product_was_successfully_updated)
        format.html { redirect_to products_path }
        format.xml  { head :ok } 
  
      else    
        format.html { render :action =&gt; "edit" }
        format.xml  { render :xml =&gt; @product.errors, :status =&gt; :unprocessable_entity }
      end
    end
  end  
  </code></pre>
  
  <p>As you see it's quite straightforward.</p>