I am using the send method in one of my active records … executing a
method without any parameters works fine… but when it comes to
parameters it says
ArgumentError: wrong number of arguments (1 for 0)
u = User.new
#works
u.send :firstname
#does not work => ArgumentError: wrong number of arguments (1 for 0)
u.send :firstname, ‘michal’
does someone know why? the rubydoc says that its possible to call it
with params also…