As per the customization documentation, I created my own surveyor_controller.rb to specify use of the application layout. This broke the surveyor_gui js file on line 15.
It should be mentioned under Views in the readme, that when building your own layout, there needs to be an anchor point (#surveyor_gui_mount_point) for the js file.
Updated: Also the data-attribute having underscores is non-standard. The default for HAML 4.0+ is dashes. To get the underscores, I had to put Haml::Template.options[:hyphenate_data_attrs] = false into a config initializer.
As per the customization documentation, I created my own
surveyor_controller.rb
to specify use of the application layout. This broke the surveyor_gui js file on line 15.It should be mentioned under Views in the readme, that when building your own layout, there needs to be an anchor point (
#surveyor_gui_mount_point
) for the js file.Updated: Also the data-attribute having underscores is non-standard. The default for HAML 4.0+ is dashes. To get the underscores, I had to put
Haml::Template.options[:hyphenate_data_attrs] = false
into a config initializer.