Why not? Please!


#1

class Message
@@messages_envoyes = 0
def initialize(de, a)
@de = de
@a = a
@@messages_envoyes += 1
end
end
mon_message= Message.new("moi", "ma gouche")

class Email < Message
def initialize(sujet)
@sujet = sujet
end
end

Oops, try again. La méthode initialize de Email a-t-elle un unique paramètre : 'sujet' ?


#2

I am having the same issue!


#3

Try and use "sujet" instead of subject? :grin:


#4

Nvm, refreshing the page seemed to do it.


#5

Hahah ok :grin: don't forget to close thread! Thanks! :smiley:


#6

do that:

mon_message= Message.new("moi", "ma gouche")

class Email < Message
def initialize(sujet)
@sujet = sujet
@de= de
end
end


#7

i had also this problem. but my solution is logout & login.


#8

@jor_di was stuck on the same step.
Thanks for your code