boxroom icon indicating copy to clipboard operation
boxroom copied to clipboard

SyntaxError in FilesController#new

Open AnirudhaAgashe opened this issue 7 years ago • 2 comments

I am getting

syntax error, unexpected keyword_end, expecting end-of-input

for line

if current_user.can_read @folder || current_user.can_write @folder

I was able to get it to work by changing it to

if current_user.can_read(@folder) || current_user.can_write(@folder)

AnirudhaAgashe avatar Sep 10 '17 16:09 AnirudhaAgashe

Same here, same workaround

BenoitPoulet avatar Oct 23 '17 09:10 BenoitPoulet

Same here! Im using Centos 7 and Ruby 2.5 installed from Software Collections.

gomix avatar Sep 23 '18 20:09 gomix