-
Notifications
You must be signed in to change notification settings - Fork 1
アンケート作成の外側実装 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
utayo
wants to merge
45
commits into
master
Choose a base branch
from
poyo-master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
アンケート作成の外側実装 #2
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTMLObjectとjQueryObjectが混在していたのを直し中。
ボタン押したらイベントが走るところまでは実装できているので、次はオプション追加するところ
option消えるようになった。 multipleとかも実装したいけどとりあえずガワを実装予定。 質問幾つも追加できるように。
まだoptionに対応してないので実装
params[:enquete][:form]から@enquete.formへ保存。 次はserializeしたデータを読み込むところ。
jsonがシングルクォーテーションで区切られている場合に読み込めないバグを解消。 正しく読み込めるようにはなったので、ちこさんのモジュールに従って新規変数に入れ込む。
This reverts commit c418071.
This reverts commit cff2bbc.
次は質問型に応じたところをやるます。
showの画面に出力(複雑)
Edit機能が欲しいので、データの参照の仕方を明日chikoさんに聞く。
new画面のみ適用するように。 ファイルで分けるためにどのcoffeescriptファイルをincludeしてるか書いてあるファイルがどれか知りたい。
調子が悪い
This reverts commit a53f51c.
This reverts commit 7d6f818.
This reverts commit 2e8b5b6.
ライブラリgonを使用。
ひとまず。次はアンケート部分。 urlをそのままsqliteで保存するとなぜか文字コードでエラーがでてしまう。
number_fieldのmin maxが指定できないところ以外は完成。
optionがまだ出ない
ちょっと変えただけでeditに変えれるように書いた自分を褒めてあげたい
layoutに突っ込んでたので、画面遷移がない状態だとgonが改めて呼ばれなかったケース。 editするたびにincludeするようにした。
gonでjs側に渡すとなぜかmin,maxが入ってない・・・ あとマイナスの値を渡すとJSONParseのところで文字列として扱われているのかバグる
Marshalにforce_encoding(‘UTF-8’)してから渡さないと怒られるらしい。 @Enqueteをそのままgonに入れてたのが原因っぽい。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
・質問を作るところまでは完成
・今はjson形式で送るところを実装中
・checkboxとmultipleはできているのであとは(とりあえず)数値とテキストボックス
・サーバー側で拾って保存できるように