From: Abraham Vionas Date: 2004-11-23T02:25:45+09:00 Subject: Re: Some progress but have hit a new error working through the Todo tutorial... Anyone recognize it? Thanks for the help Jamis! So, I modified my code to appear like so... ---------- require 'abstract_application' require 'todo' class TodoController < AbstractApplicationController helper :todo scaffold :todo def index render_text("Text") end end ---------- And while it doesn't throw any errors it also doesn't provide the answer the tutorial indicates I should be expecting. It says I should expect to see a screen like: -------------- LISTING TODOS Description Done New todo -------------- The tutorial suggests removing the "render_text" line and replacing it with the scaffold line, but obviously that creates an error for me... But so does removing the "render_text" line and leaving it empty while moving "scaffold: todo" to immediately beneath "helper: todo". -----Original Message----- From: jgb3@email.byu.edu [mailto:jgb3@email.byu.edu] Sent: Monday, November 22, 2004 7:14 AM To: ruby-talk ML Subject: Re: Some progress but have hit a new error working through the Todo tutorial... Anyone recognize it? Abraham Vionas wrote: > Oh, whups. The state of the todo_controller.rb file that evokes this > error > is: > > require 'abstract_application' > require 'todo' > > class TodoController < AbstractApplicationController > helper :todo > > > def index > scaffold:todo > end > end Declare the scaffolding outside of the method, at the class level, like this: class TodoController < AbstractApplicationController helper :todo scaffold :todo def index ... end end Good luck! - Jamis -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis