GithubHelp home page GithubHelp logo

override surveyor layout about surveyor_gui HOT 2 OPEN

akhildave avatar akhildave commented on July 19, 2024
override surveyor layout

from surveyor_gui.

Comments (2)

kjayma avatar kjayma commented on July 19, 2024

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.

akhildave avatar akhildave commented on July 19, 2024

Sorry for delayed reply
I did add SurveyorController, and also checked again as you suggested..But still it renders layout from surveyor_gui.
screen shot 2015-05-18 at 3 31 50 pm

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.