Showing contributors on /contributors/____ pages #2444
Labels
bug
the issue is regarding one of our programs which faces problems when a certain task is executed
fto-candidate
issues which are meant to be solved by first timers but aren't well-formatted yet
help wanted
requires help by anyone willing to contribute
Ruby
https://publiclab.org/contributors/microplastics says 8 contributors, but below on that page nobody is listed.
The code is here: https://github.com/publiclab/plots2/blob/master/app/views/tag/contributors.html.erb
But it's driven by this controller code:
plots2/app/controllers/tag_controller.rb
Lines 394 to 400 in 5ac9916
Any help fixing this would be appreciated!!!
We should also work to add a test to ensure this page gets properly populated. We could do a functional test in this file:
plots2/test/functional/tag_controller_test.rb
Lines 286 to 293 in 5ac9916
There, we don't really count contributors. We should!
Using
assert_equal assigns(:users), 99
(where 99 is the expected number of users)The text was updated successfully, but these errors were encountered: