GithubHelp home page GithubHelp logo

Comments (8)

kjayma avatar kjayma commented on July 19, 2024

I'm a little unclear as to what you are trying to do and what the problem is. When you say you are trying to override the file, do you mean that you are trying to create a new layout that looks/works differently than the original, or are you just trying to get past the error you pasted above?

Also, can you tell me a little about your application - is this an existing application and are you trying to retrofit surveyor_gui, or is this a brand new application?

from surveyor_gui.

akhildave avatar akhildave commented on July 19, 2024

@kjayma I'm just trying to get past the error. This is new application, using master branch of surveyor_gui.

I experienced this error when i created a question (Grid - drop-downs ) with choice for other and comments selected. if i exclude other and comments then it will work fine.

screen shot 2015-03-04 at 10 16 56 am

Note:
I also override question_type_methods.rb because it did not allowed me to create question when choice for other and comments are selected. It gave me error "undefined method + for nil class" because display_order of default answer was nil. Below is code snippet which i included to make it work.

https://gist.github.com/akhildave/786342b179a627910ecc

from surveyor_gui.

kjayma avatar kjayma commented on July 19, 2024

OK, I'll take a look. Would appreciate if you could put together a pull request for the change you did make.

from surveyor_gui.

kjayma avatar kjayma commented on July 19, 2024

I tried to reproduce the error and am so far unsuccessful. One thing I noticed is that the "Row Heading" seems to have been edited and moved to a different spot in the form. It looks like you may have edited the _question.html.haml view.

If this is the case, be aware that changes to the form could be affecting the operation of the javascript and ajax calls to create the new question. The problems may be caused by your code changes. It's possible that by moving things around, the javascript may no longer pick up changes to the "Row Heading" portion of the DOM. If you've got a fork posted to github, I could take a look and give you some more specific comments.

from surveyor_gui.

akhildave avatar akhildave commented on July 19, 2024

Thanks for your response, and sorry for delayed reply, as i was away for a work..
Here is the complete code in github
https://github.com/akhildave/survey-application
Skype: akhiltheway

from surveyor_gui.

kjayma avatar kjayma commented on July 19, 2024

No problem. I'll have a look as soon as I can.

On Sun, Mar 8, 2015 at 2:55 PM, Akhil Dave [email protected] wrote:

Thanks for your response, and sorry for delayed reply, as i was away for a
work..
Here is the complete code in github
https://github.com/akhildave/survey-application
Skype: akhiltheway


Reply to this email directly or view it on GitHub
#44 (comment).

from surveyor_gui.

kjayma avatar kjayma commented on July 19, 2024

@akhildave I understand now how you triggered the bug, and it is indeed a problem in surveyor_gui. I'll get a fix out.

from surveyor_gui.

akhildave avatar akhildave commented on July 19, 2024

Thank you

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.