From: Jeremy Woertink Date: 2007-09-07T08:36:01+09:00 Subject: Re: adding items to a list? John Griffiths wrote: > doofus!!!!! > > bad dobby! bad bad bad!!!! > > > ---->>> @post.comments.create(params[:comment]) > > urgh!!! > > and i was doing... > > ---->>> @list.items.create(params[:body]) > > > very wrong!!! > > why because the param we want to send over isn't the actual field but > the object!!! > > so... > > > @list.items.create(params[:item]) > > works fine now, urgh!!!!!!!!!!!!! > > > at least i learnt something more about ruby and made it use fancy ajax, > but god does it really show this guy needs some sleep!!! > > ...off to slam head into nearest wall > > ;-) Good work. Sometimes the answer is so simple that we need to step back before we can see it. ~Jeremy -- Posted via http://www.ruby-forum.com/.