First my setup: Mac OS-X Panther, Ruby 1.8 installed and sym linked to the location where Ruby 1.6 was originally located.(likely source of problem, but...) While following along with the Todo tutorial I completed the empty index action with the correct result, but when I attempted to add the render_text method as shown I get the following error message in the browser page: SyntaxError in Todo#index /app/controllers/todo_controller.rb:8: parse error /projects/Todo/script/server:49 I have double checked my typing and made sure that I used two spaces for indenting(does that matter in this context?) and tried using a space and no space between the method name and argument. I also tried using only double-quotes without parantheses the way the OnLamp tutorial did, but still get the same error page. Of course I have zero experience in debugging Ruby or rails so there may be an obvious answer here but I don''t know it. I have prepared my "doh!" response pending your feedback. -- Best Regards, Jody Leavell
Brandon Philips
2005-Jan-28 17:44 UTC
Re: error in Index action while following Todo tutorial
Jody, Can you please post your code, that would help. -Brandon On 11:41 Fri 28 Jan , Jody Leavell wrote:> First my setup: Mac OS-X Panther, Ruby 1.8 installed and sym linked to > the location where Ruby 1.6 was originally located.(likely source of > problem, but...) > > While following along with the Todo tutorial I completed the empty index > action with the correct result, but when I attempted to add the > render_text method as shown I get the following error message in the > browser page: > > SyntaxError in Todo#index > > /app/controllers/todo_controller.rb:8: parse error > > /projects/Todo/script/server:49 > > I have double checked my typing and made sure that I used two spaces for > indenting(does that matter in this context?) and tried using a space and > no space between the method name and argument. I also tried using only > double-quotes without parantheses the way the OnLamp tutorial did, but > still get the same error page. Of course I have zero experience in > debugging Ruby or rails so there may be an obvious answer here but I > don''t know it. I have prepared my "doh!" response pending your feedback. > > > > > -- > Best Regards, > > > Jody Leavell > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-- Brandon Philips brandon-CJG/fkoVOTIdnm+yROfE0A@public.gmane.org "Open minds. Open doors. Open source." - osuosl.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Fri, 28 Jan 2005 11:41:41 -0600, Jody Leavell <jody.leavell-GISIphQPqQyKDjD76uxLDg@public.gmane.org> wrote:> First my setup: Mac OS-X Panther, Ruby 1.8 installed and sym linked to > the location where Ruby 1.6 was originally located.(likely source of > problem, but...) > > While following along with the Todo tutorial I completed the empty index > action with the correct result, but when I attempted to add the > render_text method as shown I get the following error message in the > browser page: > > SyntaxError in Todo#index > > /app/controllers/todo_controller.rb:8: parse errorSo uh, what is line 8 of todo_controller.rb ? Joe