I am having trouble with some code inside an application I am working on.
With the following code:
@herbivores=Deer.find(:all,:conditions =>['state like?', '%' + params[:number]+'%'])
@[email protected](:all,:conditions =>['city like?', '%bad%'])
I receive the error:
wrong number of arguments (2 for 0..1)
Can anybody explain what is happening?