On Apr 23, 9:24 am, Colin Law <[email protected]> wrote: > On 22 April 2011 22:15, Bruno Amaral <[email protected]> wrote: > > Please don't top post, it makes it difficult to follow the thread. > Insert your reply at appropriate points in previous message. Thanks. > > > The error message mentions line 44: > > @user.positions << @cv.positions > > @user.positions.save > > > the full output is > > here:http://dl.dropbox.com/u/109441/errormessagerails.html > > Don't you get a full error trace, in the server terminal window or > log/development.log? > I do have a full trace at http://pastie.org/1825323
and the server log is http://pastie.org/1825336 > You realise that, if user.positions is also an array that > @user.positions << @cv.positions > will attempt to add the whole array @cv.positions as a single element > on the end of @user.positions. Not append the contents of > @cv.positions as multiple new elements. Are you sure you do not want > @user.positions += @cv.positions > cv.positions is the information the user has in the experience bit of their LinkedIn profile. composed of user_id: integer, company: string, end_month: string, end_year: string, start_month: string, start_year: string Using += resulted in the exact same error message, which is strange I was hoping to at least get more information from rails. Maybe it means the problem is not the line 44 but something else. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

