laanes wrote:Is there a way i can convert the object to a string
No, hence the error message.
laanes wrote:is there some other way to do it?
Yes - use the object as it was intended.
Based on your questions, you should probably find some basic OOP tutorials to understand how OOP works, and then find the documentation for the class you're using to see what type of object the Category::find_all() method returns.