Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError in FilesController#new #56

Open
AnirudhaAgashe opened this issue Sep 10, 2017 · 2 comments
Open

SyntaxError in FilesController#new #56

AnirudhaAgashe opened this issue Sep 10, 2017 · 2 comments

Comments

@AnirudhaAgashe
Copy link

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)

@BenoitPoulet
Copy link

Same here, same workaround

@gomix
Copy link

gomix commented Sep 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants