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

2010-11-11 Thread Goli R.
if i run rails serve i am fa C:\forexrails server = Booting WEBrick = Rails 3.0.0 application starting in development on http://0.0.0.0:3000 = Call with -d to detach = Ctrl-C to shutdown server Exiting

[Rails] Wrong number of arguments (0 for 1) in callback method

2009-11-13 Thread Kalpesh1 Patel
I was creating this simple rail application. my controller method looks like this: --- def create() @simple = Simple.new(params[:simple]) ##params coming from view @simple.save end --- And my model class Simple as below: --- class Simple ActiveRecord::Base set_table_name

[Rails] Wrong number of arguments (0 for 1)

2009-09-16 Thread RubyonRails_newbie
Hi everyone, I am running through the RailsSpace tutorial. I'm trying to figure out the advanced login section, which in short creates a cookie and an authorization token in the users table in the database. My trouble is, I'm getting error: Wrong number of arguments (0 for 1) the code that has

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

2009-07-02 Thread JannaB
I am creating a multiple-selection list box with : % form__list1 = [] % %= select_tag, options_for_select([A,B,C,D], selected =A), html_options = {size = 5, multiple = true}) % I get wrong number of arguments (0 for 1) alluding to form__list1[] . How else should I specify this to not have this

[Rails] wrong number of arguments (0 for 1) error.... Help!!!

2008-12-08 Thread Jay Mark
I am using Rails 2.0.2 with mysql database I am getting this error when running a query with Find_by_sql: wrong number of arguments (0 for 1) Here are my queries: @authors = Author.find_by_sql[SELECT * FROM authors WHERE name = ?', name] Also @books = Books.find_by_sql[SELECT * FROM books