Closed akhildave closed 9 years ago
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?
@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.
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.
OK, I'll take a look. Would appreciate if you could put together a pull request for the change you did make.
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.
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
No problem. I'll have a look as soon as I can.
On Sun, Mar 8, 2015 at 2:55 PM, Akhil Dave notifications@github.com 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 https://github.com/kjayma/surveyor_gui/issues/44#issuecomment-77767462.
@akhildave I understand now how you triggered the bug, and it is indeed a problem in surveyor_gui. I'll get a fix out.
Thank you
First of all, Thank you for your great efforts. I am facing difficulty to override a haml file of surveyor gem, which is originally present inside partials folder of surveyor gem. After including surveyor_gui, i am unable to override it.
File Name - _question_group.html.haml
File Location:
I tried many approaches to override it and also solutions in Stack overflow. But was not able to achieve it...Can you guide in right direction...Any ideas?
Thanks