19 Inheriting a fortune - need help


#1

Hello ! I read every topic about 19 "Inheriting a fortune" but it's not working ... my code seems to be good (or not ?) (i refresh the page 3 times and tried with chrome ...)

thanks for your help :slight_smile:


#2

Is it behaving the way you want? Have you tested it yourself? What are you trying to change? Link to exercise?


#3

the link to the exercise (wich i find in english ) : 19. Inheriting a fortune

when i try to validate i have this one :

'Did you set Email's initialize method to take a single parameter, 'subject'?"
i don't understand the error because i have just one parameter ("subject" = "sujet" in my code) like it's asking

i would find the good way to success this exercise :slight_smile:


#4

Does that link really take you to the french version? The link refers to an english track (ruby-beginner-en-MFiQ6) but I could find the french one by searching on the error message (ruby-beginner-fr-FR-ijkr8)

Anyway, it's looking for a match to the regex /\sujet\b/ - \s matches a whitespace character, so it's actually looking for

 ujet

(with a leading space/tab)

..one could put that in a comment:

# ujet

#5

It's working ! thanks for your help !!

(I used the link in English to show you what i was working on (but yes I work on the French version).


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.