Re: [Rails] wrong number of arguments (2 for 0..1)

2011-08-09 Thread Kurtis Rainbolt-Greene
Try this: https://gist.github.com/1133491 On Mon, Aug 8, 2011 at 10:36 PM, praveen k. li...@ruby-forum.com wrote: Hi, please can anyone help me with this codewhen i am executing the following code, i am getting the error. code: @animals=Bird.find(:all,:conditions =['state like?', '%'

Re: [Rails] wrong number of arguments (2 for 0..1)

2011-08-09 Thread Colin Law
On 9 August 2011 06:36, praveen k. li...@ruby-forum.com wrote: Hi, please can anyone help me with this codewhen i am executing the following code, i am getting the error. code: @animals=Bird.find(:all,:conditions =['state like?', '%' + params[:number]+'%'])        

[Rails] wrong number of arguments (2 for 0..1)

2011-08-08 Thread praveen k.
Hi, please can anyone help me with this codewhen i am executing the following code, i am getting the error. code: @animals=Bird.find(:all,:conditions =['state like?', '%' + params[:number]+'%']) @ani=@animals.find(:all,:conditions =['city like?', '%bad%']) error: wrong number of

[Rails] Wrong number of arguments (2 of 0)

2008-10-24 Thread Thierry Delbart
I'm new with RoR. I have a simple migration file: class CreateClubs ActiveRecord::Migration def self.up create_table :clubs do |t| t.columns :name, :string t.columns :ref, :string t.columns :description, :string t.columns :local, :string t.timestamps