Try this: https://gist.github.com/1133491
On Mon, Aug 8, 2011 at 10:36 PM, praveen k. <[email protected]> wrote: > Hi, > please can anyone help me with this code....when i am executing the > following code, i am getting the error. > > code: > @animals=Bird.find(:all,:conditions =>['state like?', '%' + > params[:number]+'%']) > @[email protected](:all,:conditions =>['city like?', '%bad%']) > > error: > wrong number of arguments (2 for 0..1) > > please can anyone help me out. > Thanks. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Kurtis Rainbolt-Greene: - Hacker, Designer, Author - 3725 Onyx Street, Eugene, OR 97405 - (202) 643-2263 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

