You don't need to reference the show.html.erb in your controller... 
template implementations have that "# show.html.erb" text as a reminder 
of which view is invoked.

def show
  @product = Product.find(params[:id])
  respond_to do |format|
    format.html # show.html.erb
    format.xml { render :xml => @product }
  end
end

should be fine.

In your view, are you referencing a method on the model that may be 
recursing indefinitely? I've seen instances of tht which will cause a 
stack level too deep error... but yours seems to be related to the find 
operation in the controller.

Have you migrated your Products table with fields? - I don't know if a 
column-less table would have this effect..., never tried it myself.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to