Coder Social home page Coder Social logo

ec_market's Introduction

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

ec_market's People

Watchers

 avatar

ec_market's Issues

日記の追加

post user:references title:string content:text image:string

3 注文のステータス管理ができる

  • 注文済み: キャンセル可能
  • 発送処理中: キャンセル不可、業者管理で変更
  • 処理中発送済み: キャンセル不可、業者管理で変更
  • キャンセル: ユーザ or 業者管理で変更

子の例外を親のフォームに表示させたい

Orderモデルでself.errors.add(base: 'hogehoge')としたエラーをorder.newで表示させるのはわかったが、order.create内でuserメソッドが例外を吐いたときに、order.errorsにエラーを設定させるにいはどうするか?

  • 戻り値をエラーにする?
  • 例外を親に伝搬する?

商品の注文時にポイントが利用できる

  • Userモデルにポイントを追加する
  • クーポンコードモデルを追加する
  • 管理者がクーポンコードを発行できる
  • ユーザーがクーポンコードを入力するとポイントが増える
  • 管理者はユーザーのポイントを増減できる

3 注文のステータスの履歴が確認できるように

ステータスの変更履歴テーブルが必要になる。
ステータスを変更するのは、ユーザーか業者のため誰から変更された(by_user, by_merchant)が知りたい。

OrderStatusモデルを追加すればよさそう

  • order_id
  • from_status 変更前のステータス
  • to_status 変更後のステータス
  • edit_by 0: user / 1 : merchant

3 送料が業者ごとに1箱の量を決められる

1箱の量を決められる。とあるので、
送料は「5商品ごと」に600円追加する
の5商品の数を業者ごとに変更できることと解釈しました。

業者Aは5商品600円
業者Bは7商品600円

2 ユーザーは日記を書くことができる

  • 日記には画像を添付できる
  • トップページはすべてのユーザーの日記の一覧ページ
  • コメントがついたら日記を書いたユーザーにメールが送信される
  • ユーザーは他の人の日記にGood!をつけられる
  • Good!がついたら日記を書いたユーザーにメールが送信される

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.