From: incag neato Date: 2012-08-18T01:57:35+09:00 Subject: Default parameters? + (Noob) Guidance Hi guys, would love your help with a few questions: 1) working on the RubyMonk.com primer. It's pretty good, but it got vague and super challenging all of a sudden. (or maybe i just got dumb.) This is where I am stumped: def say_hello(name) "Hello, #{name}." end The output: returns "Hello, Master." when say_hello("Master") is called ✔ Error: returns "Hello, Qui-Gon Jinn." when say_hello is called with no parameters Error: wrong number of arguments (0 for 1) The question: How do I write a default value, to account for when the object is called with no parameter?? I feel I've tried everything: googling/ testing, re-reading rubymonk/ testing, rereading ruby doc/ testing; can't get it! The link: http://rubymonk.com/learning/books/1/chapters/19-ruby-methods/lessons/69-new-lesson Help! 2) in moving forward, how would you recommend I teach myself? a. Michael Hartl's tutorials? or perhaps b. Chris Pine's PragProg book: "Learn to Program"? -- Posted via http://www.ruby-forum.com/.