From: steven masala Date: 2005-12-06T04:11:13+09:00 Subject: add a task to todo hmm no i cant get something else to work in my controller def add_tasklist tasklist = Tasklist.new tasklist.attributes = @params["new_tasklist"] if tasklist.save redirect_to(:action => "list") else render_text"could not add" end in my template
New Task: <%= text_field("new_tasklist", "task") %> my database is todo, the table is tasklist, fields are id, task, done and i get the following error SyntaxError in # ./script/../config/../app/controllers/tasklist_controller.rb:17: syntax error ive tried changing the tasklist to tasklists, im not quite sure what that means why some are tasklists and some tasklist. thanx Steve -- Posted via http://www.ruby-forum.com/.