<p>This PR uses the existing named routes for the messages controller.</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/1850'>https://github.com/openstreetmap/openstreetmap-website/pull/1850</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Use named paths for messages</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-0">app/models/notifier.rb</a>
(11)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-1">app/views/diary_entry/_diary_entry.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-2">app/views/message/_message_summary.html.erb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-3">app/views/message/_sent_message_summary.html.erb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-4">app/views/message/new.html.erb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-5">app/views/message/read.html.erb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-6">app/views/user/_contact.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-7">app/views/user/view.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-8">test/controllers/message_controller_test.rb</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1850.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/1850.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1850.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/1850.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1850">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLWRGGZNTn3MLvlr5UyiNlJExerUqks5twmIRgaJpZM4T3p1d">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLRJu7MDqdeY6DfhVJSFJ8YCxgnBWks5twmIRgaJpZM4T3p1d.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/pull/1850"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Use named paths for messages (#1850)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/1850"}}}</script>
<script type="application/ld+json">{"@type":"MessageCard","@context":"http://schema.org/extensions","hideOriginalBody":"false","originator":"37567f93-e2a7-4e2a-ad37-a9160fc62647","title":"Use named paths for messages (#1850)","sections":[{"text":"","activityTitle":"**Andy Allan**","activityImage":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","activitySubtitle":"@gravitystorm","facts":[]},{"title":"Commit Summary","facts":[{"name":"011cfa7","value":"Use named paths for messages"}]},{"title":"File Changes","facts":[{"name":"Modified","value":"[app/models/notifier.rb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-0) (11 changes)"},{"name":"Modified","value":"[app/views/diary_entry/_diary_entry.html.erb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-1) (2 changes)"},{"name":"Modified","value":"[app/views/message/_message_summary.html.erb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-2) (8 changes)"},{"name":"Modified","value":"[app/views/message/_sent_message_summary.html.erb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-3) (4 changes)"},{"name":"Modified","value":"[app/views/message/new.html.erb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-4) (4 changes)"},{"name":"Modified","value":"[app/views/message/read.html.erb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-5) (8 changes)"},{"name":"Modified","value":"[app/views/user/_contact.html.erb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-6) (2 changes)"},{"name":"Modified","value":"[app/views/user/view.html.erb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-7) (2 changes)"},{"name":"Modified","value":"[test/controllers/message_controller_test.rb](https://github.com/openstreetmap/openstreetmap-website/pull/1850/files#diff-8) (1 changes)"}]}],"potentialAction":[{"name":"Add a comment","@type":"ActionCard","inputs":[{"isMultiLine":true,"@type":"TextInput","id":"IssueComment","isRequired":false}],"actions":[{"name":"Comment","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueComment\",\"repositoryFullName\":\"openstreetmap/openstreetmap-website\",\"issueId\":1850,\"IssueComment\":\"{{IssueComment.value}}\"}"}]},{"name":"Close pull request","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"PullRequestClose\",\"repositoryFullName\":\"openstreetmap/openstreetmap-website\",\"pullRequestId\":1850}"},{"targets":[{"os":"default","uri":"https://github.com/openstreetmap/openstreetmap-website/pull/1850"}],"@type":"OpenUri","name":"View on GitHub"},{"targets":[{"os":"default","uri":"https://github.com/openstreetmap/openstreetmap-website/pull/1850.patch"}],"@type":"OpenUri","name":"View patch"},{"targets":[{"os":"default","uri":"https://github.com/openstreetmap/openstreetmap-website/pull/1850.diff"}],"@type":"OpenUri","name":"View diff"},{"name":"Unsubscribe","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"MuteNotification\",\"threadId\":333356381}"}],"themeColor":"26292E"}</script>