On Aug 17, 6:48 pm, Musdev Musdev <[email protected]> wrote:
> 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?

It's unnecessary but harmless. The problem here is that you wrote

render show.html.erb

rather than render 'show' or something like that - with the above
rails thinks it needs to call the show method (and then call a method
named html on that and so) so you end up recursing into your own
action infinitely

Fred

-- 
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.

Reply via email to