all the wikis all_wikis = scope.all wikis << wiki # if the user is premium, only show them public wikis, or that private# this is the lowly standard us
(id: collaborations.pluck(:wiki_id)) all_wikis.each do |wiki|wikis they created, or private wikis they are a collaborator on end= Wiki.where(id: collaborations.pluck(:wiki_id))
all_wikis
class User < ActiveRecord::Base has_many :collaborators#build and save wiki
SQL INSERT INTO "wikis" ("body", "created_at", "title", "updated_at") VALUES(?"wikis" (&q