Wisper as an alternative to the Observer Design Pattern on Rubyonrails

Asked

Viewed 41 times

1

I’m trying to implement the Wisper as an alternative to the Observer Design Pattern that was discontinued from Ruby.

The error is: Wrong number of Arguments (Given 1, expected 0)

The method I created is basically to run a puts "A restaurant has received a rating".

I’m studying the Caelum RR77 booklet.

https://gist.github.com/emanoelopes/7bf3d5fcbf1a6f1a44d199dcceefa0f9

  • It worked! My colleague explained it to me and we did it. https://github.com/emanoelopes/cp2-rails/tree/master/cp2-caelum-apostila/vota_prato

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.