Alright, I had a big brain fart with this one. I was confusing the
syntax with define_method.
It doesn't work because it's calling model.content('some content').
What I need is model.content = 'some content'.
So the correct invocation would be model.send('content=', 'some
content').
Sorry for
So I'm not exactly using Rails, but just ActiveRecord. Though I felt
this would be more appropriate in the Rails forum than the general Ruby
forum.
I'm working on an app that interacts with databases, without having a
database of its own.
I have a class called Modeller, and a Modeller#retrieve_mo
2 matches
Mail list logo