I’m trying to send a number of virtual attributes from my form but keep running in to an error about not being able to convert symbol to integer.
My controller’s got this in it:
@user = User.generate_batch(params[:user][:username_l][:quantity])
And in my model:
def self.generate_batch(username_l, quantity)
What am I doing wrong and where can I read up on this??
S
For future reference, when passing multiple params, I needed to do the following. I hope it helps someone else.