k-foo / search_app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

アプリ名

search_app

URL

Herokuによるデプロイ https://search-app-20201229.herokuapp.com/

説明

ransackというgemを導入し、複数条件にあった検索や「〜以下」の検索条件で商品を選択のうえ結果を表示することができます。

テーブル設計

categories テーブル

Column Type Options
name string null: false

Association

  • has_many :products

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

Association

  • belongs_to :category

使用しているバージョン等

  • ruby 2.6.5
  • Rails 6.0.3.4
  • MySQL


clone

% git clone https://github.com/erika618/search_app.git
% cd search_app
% bundle install
% rails db:create
% rails db:migrate
% rails db:seed

About


Languages

Language:Ruby 75.8%Language:HTML 15.1%Language:JavaScript 7.3%Language:CSS 1.4%Language:SCSS 0.3%