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?

>
> @cv.positions is an array, so from what you're telling me it should
> not use "match" as a method.

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

I don't know what @user.positions is of course so I may be
misinterpreting something.

Colin

>
> On Apr 22, 6:38 pm, Colin Law <[email protected]> wrote:
>> On 22 April 2011 18:09, Bruno Amaral <[email protected]> wrote:
>>
>> > I have been building a small app to import a cv from linkedin.
>> > Displaying the information is working out perfect, but saving it to
>> > the database is turning out to be a challenge.
>> > ...
>> > When running it, I get the message:
>> > undefined method `match' for LinkedIn::Position::Resource:Class
>>
>> match is a method of String, so I wonder whether it is getting called
>> on the above type instead of a string.  The error should show a stack
>> trace which should show you which line of your code it is failing on.
>> Post the complete error and trace if you cannot work it out.
>>
>> Colin
>
> --
> 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.
>
>

-- 
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.

Reply via email to