Hi Mike,

So I added the .downcase method to @name, and it tells me that downcase is
not defined:

/Users/Rachel/dev/BEWD_NYC_10/rachel/midterm/person.rb:11:in `check_input':
undefined method `downcase' for nil:NilClass (NoMethodError)

*   def self.check_input(name)*
* if @name.downcase == "rachel"*
* return Mashable.search_story_title*
* else *
* puts "Please enter Rachel for your name"*
* @name = gets.chomp*
* end*
* end*

Is that because of @name is an instance variable?

Thanks,
Rachel


On Wed, Jun 4, 2014 at 9:28 PM, Michael Wenger <notifications@github.com>
wrote:

> In _Rachel_Wu/midterm/person.rb:
>
> > @@ -0,0 +1,18 @@
> > +require_relative 'mashable.rb'
> > +
> > +class Person
> > +  attr_accessor :name
> > +
> > +  def initialize(name)
> > +    @name = name
> > +  end
> > +
> > +  	def self.check_input(name)
> > +		if name == "rachel"
>
> Your treating user input as case insensitive. If you wanted to change
> this, you could add the .downcase method to name on this line
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ga-students/bewd_10_nyc_homework/pull/69/files#r13420414>
> .
>