<p dir="auto">Since changesets are already declared as resources, I moved subscribe/unsubscribe routes under their resources definition. The only problem is that rails named their path helpers differently, <code class="notranslate">subscribe_changeset_path</code> etc instead of previous <code class="notranslate">changeset_subscribe_path</code>.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4583'>https://github.com/openstreetmap/openstreetmap-website/pull/4583</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4583/commits/3a5f0c4845ea7712e26f625c58424c309cf06881" class="commit-link">3a5f0c4</a>  Move changeset subscribe/unsubscribe to resourceful routes</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4583/files">4 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4583/files#diff-55254045ba774e4c360d7bbfde054665072d2ab49abc3f21add15a37bba65a1c">app/mailers/user_mailer.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4583/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4583/files#diff-6cdb8b8fa44e422834c4815943a8e4933d6d09e4687f338d007daeff1a90daa9">test/controllers/changesets_controller_test.rb</a>
    (22)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4583/files#diff-3b2293412c91922d53358a642a2fb70e51ea4f4dce899f33a577fac2c662d91c">test/mailers/user_mailer_test.rb</a>
    (15)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4583.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4583.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4583.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4583.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4583">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJR4ZQMG5RW4D767GLYYO3AHAVCNFSM6AAAAABEY63EL6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DSNZTHE4DIOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLK3Q4POB7F47PFVRIDYYO3AHA5CNFSM6AAAAABEY63EL6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIFBGHJA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4583</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4583",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4583",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>