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

Error on exercise upload #198

Open
yurifeitosa opened this issue Jun 25, 2021 · 2 comments
Open

Error on exercise upload #198

yurifeitosa opened this issue Jun 25, 2021 · 2 comments

Comments

@yurifeitosa
Copy link

...
undefined method `[]' for nil:NilClass

Extracted source (around line #354):

end

files = exercise_params[:files]
puts "files = #{files.inspect}"
@attached_files = exercise_params[:attached_files]
if @attached_files

...

On upload the exemple exercise and anothers exercices in http://localhost:9292/gym/exercises/upload, returns the error above.

@yurifeitosa
Copy link
Author

I´m logged with admin acoount, and when I do the upload using the example exercise in localhost, the code-workout return with the error "undefined method".

@s-edwards
Copy link
Member

This is a bug with the (unsupported) route you are using. Try using the https://localhost:9292/gym/exercises/new route, which is connected to the "Create New" button at the top of the Gym->Exercises page to see if that works instead.

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

2 participants