From: John Griffiths Date: 2007-09-09T01:39:22+09:00 Subject: Re: adding items to a list? Thanks Jeremy, appreciate the comment ;-) Any ideas where I should start for deleting items AJAXically from the list? learning, just sometimes things can be a bit slow, Jeremy Woertink wrote: > 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/.