Ajax.InPlaceEditor not a constructor error - solution

2009-07-17 Thread cc_humbry
Hi, There are a number of posts kicking around with this error when trying to use scripaculous libraries. The docs say that you just need to include prototype and scriptaculous 1. echo $javascript->link('prototype'); 2. echo $javascript->link('scriptaculous'); but this gives an error when

Re: HABTM saving problem - solved (I think)

2009-07-14 Thread cc_humbry
Finally sorted this for anyone else who has the same problem... iterate over my array and save each item individually. Get each id of inserted row and add to new data array and then save Category. This then creates the associations in the link table. foreac

Saving HABTM problems

2009-07-14 Thread cc_humbry
Hi, Can't figure this one out, not for the want of trying though. Models involved are Category, CandidateItem which are associated in each model as HABTM. I created a temp baked project to see if the association definition was correct and it appears to be. In my categories_controller I have a me

HABTM saving problem

2009-07-14 Thread cc_humbry
Hi, Can't figure this one out, not for the want of trying though. Models involved are Category, CandidateItem which are associated in each model as HABTM. I created a temp baked project to see if the association definition was correct and it appears to be. In my categories_controller I have a me