Links to new event can prefill tags

Closes #110
This commit is contained in:
echarp 2018-03-01 22:53:20 +01:00
parent b5ebea1472
commit fa3b63d237

View File

@ -26,7 +26,8 @@ class EventsController < ApplicationController
time = Time.zone.now.change(min: 0) + 1.day time = Time.zone.now.change(min: 0) + 1.day
@event = Event.new start_time: time, @event = Event.new start_time: time,
end_time: time + 1.hour, end_time: time + 1.hour,
region_id: session[:region] region_id: session[:region],
tag_list: params[:tag_list]
end end
# POST /events/preview # POST /events/preview