[Ruby on Rails]Railsで診断機能を超簡単に実装する
ルートを追加します。 routes.rb Rails.application.routes.draw do get "diagnoses/question1" get "d ...
451 search resultsShowing 1~20 results
You need to log-in
ルートを追加します。 routes.rb Rails.application.routes.draw do get "diagnoses/question1" get "d ...
= params[:question5] # 「はい」(1)の数を合計 yes_count = [question1, question2,
ponse from django.urls import reverse # reverseを追加 def index(request): latest_question ...
: :destroy end answer.rb class Answer < ApplicationRecord belongs_to :question end 特 ...
covers what I learned, not exam question content." - Change the title from "Exam
-8"> <title>Detail</title> </head> <body> <h1>Question ...
("-pub_date")[:5] context={ "latest_question_list":question_list, } return ren ...
updating your question title and body to be more descriptive. You can't vote for your ...
choice のアトリビュートである votes をインクリメントする。choice がない場合、templates/polls/detail.html に question ...
理解しているのなら何をしているのか理解はそこまで難しくないと思います。 まず、変数にインスタンスを代入します。get_object_or_404メソッドなのでQuestion ...
(question_id: params[:question_id], user_id: current_user.id) @like.destroy re ...
stions about 〇〇 system. If the context is not relevant, please dont answer the question ...
# A tibble: 4 × 9 subject_id rt response question ...
側に情報をあげる! 今回のようにformから情報をサーバーに渡し、それ /index.html" context_object_name = "latest_question ...
' context_object_name = 'latest_question_list' def get_queryset(self): return Question. ...
:8000/query \ -H "Content-Type: application/json" \ -d '{"question": "売上金額が一番高い商品は何ですか? ...
from django.template import loader from .models import Question # 追加 def index(request ...
/detail.html', { 'question': question, 'error_message': "You didn't select a c ...
ダを確認します。 A.LiteSpeed Q6.What is the version of the webserver from the previous question ...
, "subcategories": subcategories}) # 出題 @require_http_methods(["GET"]) def get_question ...
451 search resultsShowing 1~20 results
Qiita is a knowledge sharing service for engineers.