About the warnings:
... warning: Insecure world writable dir /usr in PATH, mode 040777
... warning: Insecure world writable dir /usr in PATH, mode 040777
They are telling you that the directory /usr
(and not /usr/local
) is world writable. To fix: chmod -R go-w /usr
.
The error says:
... `load': /Users/yassine/treebook/app/models/user.rb:12: syntax error, unexpected keyword_end (SyntaxError)
There's an extra end
keyword on line 12 in your user.rb
file.