I am logged into the admin dashboard on wheelmap.org
I go to /admin/photos
I click on the button Photo erstellen
On /admin/photos/new I fill in the fields and click on Photo anlegen to submit my image
I can not submit the photo because the form tries to validate the fields Poi and User with the error message muss ausgefüllt werden even though I have already selected a number in the previous step.
Server Output:
I, [2016-10-04T15:28:50.522583 #23292] INFO -- : Started POST "/admin/photos" for x.x.x.x at 2016-10-04 15:28:50 +0200
I, [2016-10-04T15:28:50.526117 #23292] INFO -- : Processing by Admin::PhotosController#create as HTML
I, [2016-10-04T15:28:50.526271 #23292] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxxx=", "photo"=>{"poi_id"=>"12", "user_id"=>"12", "image"=>#<ActionDispatch::Http::UploadedFile:0x007fa4b34cd308 @tempfile=#<Tempfile:/tmp/RackMultipart20161004-23292-k86u3u>, @original_filename="asq_logo_grey.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"photo[image]\"; filename=\"asq_logo_grey.png\"\r\nContent-Type: image/png\r\n">, "caption"=>"", "taken_at(3i)"=>"", "taken_at(2i)"=>"", "taken_at(1i)"=>"", "taken_at(4i)"=>"", "taken_at(5i)"=>""}, "commit"=>"Photo anlegen"}
I, [2016-10-04T15:28:50.528916 #20450] INFO -- : Rendered shared/_header.html.haml (9.7ms)
I, [2016-10-04T15:28:50.529879 #20450] INFO -- : Read fragment views/zh_TW/shared/_footer.html.haml'}/43b65f43b89a4b37c7ffe42f2943a81f (0.4ms)
I, [2016-10-04T15:28:50.530022 #20450] INFO -- : Rendered shared/_footer.html.haml (0.8ms)
I, [2016-10-04T15:28:50.530386 #20450] INFO -- : Rendered shared/_google_tracking.html.haml (0.2ms)
I, [2016-10-04T15:28:50.530784 #20450] INFO -- : Rendered shared/_social_embed.html.haml (0.2ms)
I, [2016-10-04T15:28:50.531176 #20450] INFO -- : Filter chain halted as :load_region rendered or redirected
I, [2016-10-04T15:28:50.531427 #20450] INFO -- : Completed 404 Not Found in 24ms (Views: 21.9ms | ActiveRecord: 0.1ms)
W, [2016-10-04T15:28:50.538145 #23292] WARN -- : WARNING: Can't mass-assign protected attributes for Photo: poi_id, user_id, caption
lib/rack_i18n_locale_switcher.rb:32:in `call'
librato-rack (0.6.0) lib/librato/rack.rb:94:in `process_request'
librato-rack (0.6.0) lib/librato/rack.rb:64:in `call'
User story:
/admin/photos
Photo erstellen
/admin/photos/new
I fill in the fields and click onPhoto anlegen
to submit my imagePoi
andUser
with the error messagemuss ausgefüllt werden
even though I have already selected a number in the previous step.Server Output: