```ruby
if user_signed_in?
  if current_user.sign?(@petition)
    ...
  else
    ...
  end
else
  ...
end
```

```ruby
def sign?(@petition)
  petition_users.map(&:petition_id).include?(@petition.id)
end
```

model method 補測試