[openstreetmap/openstreetmap-website] Add microcosms to the website (#2390)
Brian DeRocher
notifications at github.com
Tue Oct 15 22:18:00 UTC 2019
openbrian commented on this pull request.
> @@ -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."
yup yup
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2390#discussion_r335202699
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191015/ca93d427/attachment.html>
More information about the rails-dev
mailing list