You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
New nursery table form should create a new nursery table associated with the selected zone. Form should populate a zone id based on the dropdown.
Actual behavior:
Attempts to create a new nursery table result in an error "Zone must exist" even if I have a zone selected:
In the console, I noticed that the form is using the zone name, rather than the id, to look for the zone.
Processing by NurseryTablesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"XsLtVJiFRo1+QE3Z4GySTPUNReOrccOERlRoK5dSLiIDSZcHxCgFIyz8MTL/zlzQfW1sTwJODjodtUlSHP3NOQ==", "nursery_table"=>{"capacity"=>"200", "zone_id"=>"fa", "name"=>"fa"}, "commit"=>"Create Nursery table"}
Step to reproduce:
Create a new zone at /zones/new
Navigate to nursery_tables/new
Select your new zone from the drop down.
Fill in all fields with test data and hit "Create Nursery Table"
Observe errors in the browser and the rails console (you may need to scroll up)
The text was updated successfully, but these errors were encountered:
Expected behavior:
New nursery table form should create a new nursery table associated with the selected zone. Form should populate a zone id based on the dropdown.
Actual behavior:
Attempts to create a new nursery table result in an error "Zone must exist" even if I have a zone selected:
In the console, I noticed that the form is using the zone name, rather than the id, to look for the zone.
Processing by NurseryTablesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"XsLtVJiFRo1+QE3Z4GySTPUNReOrccOERlRoK5dSLiIDSZcHxCgFIyz8MTL/zlzQfW1sTwJODjodtUlSHP3NOQ==", "nursery_table"=>{"capacity"=>"200", "zone_id"=>"fa", "name"=>"fa"}, "commit"=>"Create Nursery table"}
Step to reproduce:
Create a new zone at /zones/new
Navigate to nursery_tables/new
Select your new zone from the drop down.
Fill in all fields with test data and hit "Create Nursery Table"
Observe errors in the browser and the rails console (you may need to scroll up)
The text was updated successfully, but these errors were encountered: