Ar Chron wrote:
> 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.
Thanks Chron,
that solution resolved my issue, I dropped the reference to show.html
and it worked perfect.
SO if the method is the same name as the view, I should never reference
that view in the controller inside the method definition?
regards
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.