Dylan,
Could you post the relevant part of your code? I believe Active Record
uses method_missing already. I wonder if this might have something to do
with your problem.
--
John Long
http://wiseheartdesign.com
Dylan wrote:> hi all
>
> I''m using serialize :data in my model to serialize a hash
>
> here''s the code I use to create a new model :
>
> node = Node.new
> node.data = {}
> node.data[''foo''] = ''bar''
> node.save
>
> I''m trying to use method_missing so I can replace the above code
with
> something like :
>
> node = Node.new
> node.foo = ''bar''
> node.save
>
> but I keep getting SystemStackError (stack level too deep)
>
> is there a way round this or do I need to explicitly create a hash on
> each new instance of a model?
>
> thanks
> dylan