-
Notifications
You must be signed in to change notification settings - Fork 0
Feature ad making #5
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
base: master
Are you sure you want to change the base?
Changes from 4 commits
da88770
c6e61bb
447eca2
dca848f
3359d06
a14df47
183e852
9a83d44
c8826cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ def create | |
| flash[:notice] = 'Ad registered!' | ||
| redirect_to(ad_index_path) | ||
| else | ||
| render('ad/new') | ||
| render(new_ad_path) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| end | ||
| end | ||
|
|
||
|
|
@@ -28,7 +28,7 @@ def update | |
| flash[:notice] = 'Ad updated!' | ||
| redirect_to(ad_index_path) | ||
| else | ||
| render('ad/edit') | ||
| render(edit_ad_path) | ||
| end | ||
| end | ||
|
|
||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| <%= render partial: "errorlog" %> | ||
| <%= form_for(@ad ,url: ad_path(@ad),html: {method: "patch",class: "form-group"}) do |f| %> <%##入稿フォーム %> | ||
| <div class="form-group"> | ||
| <p>text</p> | ||
| <p>広告文</p> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ここは「テキスト」いいよ |
||
| <%= f.text_area :text,value: @ad.text,class: "form-control" %> | ||
| <p>price</p> | ||
| <p>単価</p> | ||
| <%= f.number_field :price,value: @ad.price %> | ||
| <p>advertiser_id</p> | ||
| <p>広告主ID</p> | ||
| <%= f.number_field :advertiser_id,value: @ad.advertiser_id %> | ||
| <p>image</p> | ||
| <p>イメージ</p> | ||
| <%= f.file_field :image,value: @ad.image,class: "form-control-file" %> | ||
| <%= f.submit class: "btn btn-primary",value: "更新" %> | ||
| </div> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| <%= render partial: "errorlog" %> | ||
| <%= form_for(@ad ,url: ad_index_path,html: {method: "post",class: "form-group"}) do |f| %> <%##入稿フォーム %> | ||
| <div class="form-group"> | ||
| <p>text</p> | ||
| <p>広告文</p> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 「テキスト」でよろしく |
||
| <%= f.text_area :text,value: @ad.text,class: "form-control" %> | ||
| <p>price</p> | ||
| <p>単価</p> | ||
| <%= f.number_field :price,value: @ad.price %> | ||
| <p>advertiser_id</p> | ||
| <p>広告主ID</p> | ||
| <%= f.number_field :advertiser_id,value: @ad.advertiser_id %> | ||
| <p>image</p> | ||
| <p>イメージ</p> | ||
| <%= f.file_field :image,value: @ad.image,class: "form-control-file" %> | ||
| <%= f.submit class: "btn btn-primary",value: "入稿" %> | ||
| </div> | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
ごめん、レビュー漏れてたけど、メッセージは日本語で登録してほしい
(他箇所も)