-1
다른 사용자가 만든 리소스를 표시하지만 current_user가 만든 리소스를 숨기는 페이지를 만들고 싶습니다. 내가 할 수있는 방법이나 방법이 있습니까?자원을 숨기려면 어떻게해야합니까?
class ExamplesController < ApplicationController
def index
@examples = Example.all.order("created_at DESC")
@creator_examples = Example.where(creator: current_user).order("created_at DESC") <---hide this!!!
end