On 2009-11-02, Rick Barrett <chngth3wrld / yahoo.com> wrote:
> def ask_user_for_number(question_to_ask)
>   puts question_to_ask
>   response = gets().chomp().to_f()
> end

You defined "ask_user_for_number" as a method taking an argument.

> puts ask_user_for_number

Here, you call ask_user_for_number with no argument.  Thus, it has
the wrong number of arguments.  (0 for 1) means you gave it zero and
it needed 1.

> I have no idea what this means...and I don't see what's wrong in the
> 'ask_user_for_number' method so, I don't even know where to begin to fix
> it.

Nothing's wrong with it.  What's wrong is the call to it down by the
puts later.

-s
-- 
Copyright 2009, all wrongs reversed.  Peter Seebach / usenet-nospam / seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!