Agile Web Development with Rails 7.2: syntax error (page 51)

Hi.

The code to generate an array named ‘animals’ is wrong:

animals = %w ant bee cat dog elk ] # wrong

The fix is straightforward:

animals = %w[ ant bee cat dog elk ] # right

Thanks.