Open ryangooch opened 4 years ago
When trying to edit an instrument using the "Edit Instrument" button, CHORDS portal breaks.
This CHORDS portal is running on our CSU-Hail virtual machine. It should be visible at:
csu-hail.engr.colostate.edu
I looked at the log to see what was happening. The log shows selecting an instrument, then clicking "Edit Instrument", and is copied below:
I, [2019-11-06T19:30:23.127394 #100] INFO -- : Completed 200 OK in 88ms (Views: 0.1ms | ActiveRecord: 2.9ms) I, [2019-11-06T19:30:24.441592 #100] INFO -- : Started GET "/instruments/42/edit" for 129.82.226.37 at 2019-11-06 19:30:24 +0000 I, [2019-11-06T19:30:24.442743 #100] INFO -- : Processing by InstrumentsController#edit as HTML I, [2019-11-06T19:30:24.442863 #100] INFO -- : Parameters: {"id"=>"42"} D, [2019-11-06T19:30:24.445261 #100] DEBUG -- : Profile Load (0.8ms) SELECT `profiles`.* FROM `profiles` ORDER BY `profiles`.`id` ASC LIMIT 1 D, [2019-11-06T19:30:24.446601 #100] DEBUG -- : Site Load (0.5ms) SELECT `sites`.* FROM `sites` ORDER BY `sites`.`id` ASC LIMIT 1 D, [2019-11-06T19:30:24.447874 #100] DEBUG -- : Instrument Load (0.5ms) SELECT `instruments`.* FROM `instruments` ORDER BY `instruments`.`id` ASC LIMIT 1 D, [2019-11-06T19:30:24.449653 #100] DEBUG -- : User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1 D, [2019-11-06T19:30:24.450950 #100] DEBUG -- : Instrument Load (0.3ms) SELECT `instruments`.* FROM `instruments` WHERE `instruments`.`id` = 42 LIMIT 1 D, [2019-11-06T19:30:24.451702 #100] DEBUG -- : CACHE Profile Load (0.0ms) SELECT `profiles`.* FROM `profiles` ORDER BY `profiles`.`id` ASC LIMIT 1 [["LIMIT", 1]] I, [2019-11-06T19:30:24.453182 #100] INFO -- : Rendering instruments/edit.html.haml within layouts/application I, [2019-11-06T19:30:24.483567 #100] INFO -- : Rendered instruments/_form.html.haml (30.0ms) I, [2019-11-06T19:30:24.483699 #100] INFO -- : Rendered instruments/edit.html.haml within layouts/application (30.4ms) I, [2019-11-06T19:30:24.483912 #100] INFO -- : Completed 500 Internal Server Error in 41ms (ActiveRecord: 2.4ms) F, [2019-11-06T19:30:24.484954 #100] FATAL -- : F, [2019-11-06T19:30:24.485023 #100] FATAL -- : ActionView::Template::Error (undefined method `topic_category_id' for #<Instrument:0x0000558651a500f0> Did you mean? topic_category topic_category= topic_category_url topic_category_path): F, [2019-11-06T19:30:24.485153 #100] FATAL -- : 22: .field 23: = f.label :topic_category 24: %br/ 25: = f.collection_select :topic_category_id, TopicCategory.order(:name),:id,:name, include_blank: false 26: .field 27: = f.label :description 28: %br/ F, [2019-11-06T19:30:24.485231 #100] FATAL -- : F, [2019-11-06T19:30:24.485279 #100] FATAL -- : app/views/instruments/_form.html.haml:25:in `block in _app_views_instruments__form_html_haml___2773596811815726300_47017691460600' app/views/instruments/_form.html.haml:1:in `_app_views_instruments__form_html_haml___2773596811815726300_47017691460600' app/views/instruments/edit.html.haml:5:in `_app_views_instruments_edit_html_haml__2793160224334435217_47017691049540'
Any help is appreciated!
When trying to edit an instrument using the "Edit Instrument" button, CHORDS portal breaks.
This CHORDS portal is running on our CSU-Hail virtual machine. It should be visible at:
csu-hail.engr.colostate.edu
I looked at the log to see what was happening. The log shows selecting an instrument, then clicking "Edit Instrument", and is copied below:
Any help is appreciated!