search_app
Herokuによるデプロイ https://search-app-20201229.herokuapp.com/
ransackというgemを導入し、複数条件にあった検索や「〜以下」の検索条件で商品を選択のうえ結果を表示することができます。
Column | Type | Options |
---|---|---|
name | string | null: false |
- has_many :products
Column | Type | Options |
---|---|---|
name | string | null: false |
size | string | null: false |
status | string | null: false |
price | integer | null: false |
category | references | foreign_key: true |
- belongs_to :category
- ruby 2.6.5
- Rails 6.0.3.4
- MySQL
% git clone https://github.com/erika618/search_app.git
% cd search_app
% bundle install
% rails db:create
% rails db:migrate
% rails db:seed