casting issue

chandra shekar G wrote:

we are new to ruby on rails development and would like to have a
solution for the below scenario.

we have created a complex object which contains two struct type objects
one being an array type, when we try to return this complex object from
a method ,we are getting a message like "dont know how to cast".

Could you post an example of the code?