Coder Social home page Coder Social logo

search_app's Introduction

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

search_app's People

Contributors

k-foo avatar

Watchers

 avatar

search_app's Issues

Issue1【Gem(ransack)の導入】

概要

  • シンプルな検索フォームと高度な検索フォームの作成を可能にするgem(ransack)の導入。
  • ルーティングの設定。
  • 「productモデル」と「categoryモデル」の生成。
  • seedファイルの定義。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.