<p><b>@openbrian</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2390#discussion_r335202699">app/controllers/event_attendances_controller.rb</a>:</p>
<pre style='color:#555'>> @@ -0,0 +1,50 @@
+class EventAttendancesController < ApplicationController
+ layout "site"
+ before_action :authorize_web
+ before_action :set_event_attendance, :only => [:update]
+
+ authorize_resource
+
+ def create
+ attendance = EventAttendance.new(attendance_params)
+ attendance.intention = intention
+ if attendance.save!
+ redirect_to event_path(attendance.event), :notice => "Attendance was successfully saved."
</pre>
<p>yup yup</p>
<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/2390?email_source=notifications&email_token=AAK2OLIROE2QXJX4UGXMWZDQOY6RRA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCIB2SNI#discussion_r335202699">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKZINXTTY3BDXC232TQOY6RRANCNFSM4JAHYW4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLLWVZ5NZ4NRJJYPKBDQOY6RRA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCIB2SNI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2390?email_source=notifications\u0026email_token=AAK2OLIROE2QXJX4UGXMWZDQOY6RRA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCIB2SNI#discussion_r335202699",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2390?email_source=notifications\u0026email_token=AAK2OLIROE2QXJX4UGXMWZDQOY6RRA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCIB2SNI#discussion_r335202699",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>