Conversation
Gemfile
Outdated
| gem "slim-rails" | ||
| gem "devise" | ||
| gem "bootstrap", "~> 4.3.1" | ||
| gem "bootstrap", "~> 4.3", ">= 4.3.1" |
There was a problem hiding this comment.
Tại sao lại sửa cái này?
There was a problem hiding this comment.
Em chạy bundle hén lâu đó anh, em chờ cả mấy phút luôn mà cũng chưa xong, nên em chỉ định rõ phiên bản cho nó thì nó chạy đc anh
There was a problem hiding this comment.
chỉ định rõ phiên bản thì ghi mỗi số hiệu của phiên bản đó thôi, không ghi như thế này
9a76bc1 to
96fadf5
Compare
.gitignore
Outdated
|
|
||
| # Ignore application configuration | ||
| /config/application.yml | ||
|
|
Gemfile.lock
Outdated
| erubi (1.8.0) | ||
| execjs (2.7.0) | ||
| faker (2.2.0) | ||
| faker (2.1.2) |
There was a problem hiding this comment.
Sao ko thay đổi Gemfile mà �Gemfile.lock lại thay đổi
There was a problem hiding this comment.
tại vì lúc đầu em sửa gem 'bootstrap', '~> 4.3.1' thành gem 'bootstrap', '~> 4.3', '>= 4.3.1' , bị anh việt comment là là nếu chỉ định phiên bản thì không cần viết theo gem 'bootstrap', '~> 4.3', '>= 4.3.1', mà viết theo 'bootstrap', '~> 4.3.1' cũng được, nên em sửa rồi chạy bundle lại nên hén có thay đổi đó anh
There was a problem hiding this comment.
Thế thì checkout file này ra là đc mà
| .modal-header | ||
| h4.modal-title = t ".edit" | ||
| = button_tag t(".btn"), class: "close", data: {dismiss: "modal"}, type: "button" | ||
| .modal-body |
There was a problem hiding this comment.
Sao ko dùng chung modal với new address
There was a problem hiding this comment.
tại vì edit address, em dùng form_tag, method: :patch và url của nó là url của edit, nên viết riêng ra luôn anh
There was a problem hiding this comment.
Em có thể dùng chung 1 modal sau đó dùng JS để thay đổi URL và method trong form sau mà
783eaa1 to
fa32514
Compare
fa32514 to
3687a31
Compare
http://192.168.100.19:3333/issues/206