Comments (2)
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.
from surveyor_gui.
Sorry for delayed reply
I did add SurveyorController, and also checked again as you suggested..But still it renders layout from surveyor_gui.
Here is a link to sample application : https://github.com/akhildave/survey-application
Here is link to my SurveyorController, where i am specifying "base.send :layout, 'surveyor_custom'" https://github.com/akhildave/survey-application/blob/master/app/controllers/surveyor_controller.rb
Thanks for your time :) pls update me on this
from surveyor_gui.
Related Issues (20)
- Slider becomes dropdown after a logic dependency is added HOT 3
- Status of mandatory question feature HOT 1
- Feature: Dependencies to support sum of integer responses HOT 1
- Surveyor gui not available at /surveyforms like readme says HOT 1
- Documentation needed for layout files regarding #surveyor_gui_mount_point
- Support for HTML in answers HOT 1
- Asset precompile fails with undefined method `column_attributes' HOT 6
- Questions that are mandatory and dependent on another question do not display HOT 2
- Report generation doesn't scale HOT 14
- Testbed app raising Forbidden Attributes Error HOT 6
- Override suveyor partial inside surveyor_gui HOT 8
- Unable to perform rails g surveyor_gui:install HOT 6
- missing migration for QuestionType model? HOT 1
- SurveyorController Pundit authorization HOT 1
- Unable to execute the command "rails g surveyor_gui:install" HOT 1
- Help Required HOT 2
- Install process causing "PermittedParameters" error HOT 1
- Custom templates HOT 3
- Rails 6 surveyor_gui not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surveyor_gui.