small medium large xlarge

Photo_1_pragsmall
14 Apr 2009, 22:49
Adam Smith (2 posts)

While working through the book I misread about changing the code for redirect_to_index so the parameter is optional. I guess I had become so used to seeing the little arrows when existing code was changing that I did not notice the method already in the code. I ended up having the method twice and could not figure out why I was getting argument errors. Radar from #rubyonrails on Freenode helped me see that I had two methods. I wanted to share this little tid bit in case anyone else has the same issue. I think the language could be clearer or there could be two little arrows.

You must be logged in to comment