Interestings
We included a JavaScript file and set its src attribute to a file’s RAW URL on github. After about 400 requests within an hour, github started returning 403.
Public Service Announcement:
local_assignsis a hash of local variables in a view. Useful when passing those variables on when rendering a partial; instead of enumerating the variables:render :partial 'foo', locals: { bar: bar, baz: baz}, pass the hash of locals:render :partial 'foo', locals: local_assigns