[Rails] Re: wrong number of arguements (1 for 0) on ActiveRecord::Base#send

2013-11-18 Thread zatz zatz
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

[Rails] wrong number of arguements (1 for 0) on ActiveRecord::Base#send

2013-11-18 Thread zatz zatz
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