Now I’ve changed the index.rhtml to _index.rhtml and all of a sudden I’m getting nil.inject errors.
_index should still be part of the same action so why not seeing them ?
If you're rendering a partial, you should have a line that looks like
"<%= render :partial=>'index' %>. You probably know that, but I didn't
see it in the code you included. One mistake that I've found it easy to
make is to think that one template is being rendered, when another one
is instead.
Sorry for the confusion. Acutally by the time I posted the code I had
gone back to the regular template. It was in there though when I ran
into these problems