-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature report #10
base: feature_webAPI
Are you sure you want to change the base?
Feature report #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントしたので確認をお願い!
app/controllers/ad_controller.rb
Outdated
def report | ||
@report = Report.all | ||
@ad = Ad.find(1) | ||
p "afleihfjoiwahfoiawhgfoiahfoiaho" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
デバッグコード残ってる
app/controllers/ad_controller.rb
Outdated
@report = Report.all | ||
@ad = Ad.find(1) | ||
p "afleihfjoiwahfoiawhgfoiahfoiaho" | ||
p @ad.class |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
デバッグコード残ってる
app/controllers/ad_controller.rb
Outdated
|
||
def report_period | ||
@ads = Ad.all | ||
@Report = Report.where(date: ( params[:date_min])..( params[:date_max])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
変数の先頭は小文字にして
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paramsの前に不要なスペース
@@ -13,7 +13,6 @@ | |||
ActiveRecord::Schema.define(version: 2019_06_14_041856) do | |||
|
|||
create_table "ads", force: :cascade do |t| | |||
t.integer "advertiser_id", null: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
テーブル定義は消して大丈夫?
広告を作成する時に広告主IDを指定しないだけで、広告主に広告が紐づく構造は変わらないから消したらマズイ気が
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すり合わせが必要とかだったら明日やろう
app/controllers/ad_controller.rb
Outdated
@@ -38,9 +38,21 @@ def destroy | |||
redirect_to(ad_index_path) | |||
end | |||
|
|||
def report | |||
@report = Report.all | |||
@ad = Ad.find(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
質問:これってなんのためのアクションだっけ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
report.htmlの表示を司るアクションです。只今試行錯誤中です...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK!
OJTのレポート開発(view,click)を行いました。
主な開発内容は以下の通りです。
Reportの結果を表示する開発に関しては午後より行なっていく予定です。
対応issue #8