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
Thanks for your excellent gem. Needed quick help. I am unable to override base layout of survey controller from gem surveyor. Because surveyor_gui is overriding surveyor_controller.rb and rendering layout named "surveyor_modified". Can you please check once and update me on this. I also tried by creating same folder hierarchy as in gem but it was taking layout "surveyor_modified" from gem.Below is the code for quick reference from surveyor_gui gem .
Sorry for delay in responding - been very busy. You should be able to change the layout by adding a customized surveyor_controller. Add a new layout statement at the top, and it should override the default. Per the readme:
"If you wish to customize the SurveyorController, add the following snippet to the top of your controller:
include Surveyor::SurveyorControllerMethods
include SurveyorControllerCustomMethods
These statements are necessary if calling super from within your customized methods. Be sure to insert the statements in the order shown above."
Just be aware that your layout will need to include the statements for "surveyor_add_ons" that you see in surveyor_modified. Otherwise, features like the File Upload, Stars, Grid Dropdowns and others that were bolted onto Surveyor won't work.
Thanks for your excellent gem. Needed quick help. I am unable to override base layout of survey controller from gem surveyor. Because surveyor_gui is overriding surveyor_controller.rb and rendering layout named "surveyor_modified". Can you please check once and update me on this. I also tried by creating same folder hierarchy as in gem but it was taking layout "surveyor_modified" from gem.Below is the code for quick reference from surveyor_gui gem .
https://github.com/kjayma/surveyor_gui/blob/master/app/controllers/surveyor_controller.rb
The text was updated successfully, but these errors were encountered: