Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alma Maizels & Noelle Morris #51

Open
wants to merge 55 commits into
base: master
Choose a base branch
from

Conversation

johnanmorris
Copy link

https://boiling-headland-18624.herokuapp.com/

  • Database is seeded from the CSV files
  • ActiveRecord models for: Market, Vendor, Product and Sale
  • Validations: for the most part, they are just presence: true. We didn't have time for more fine-grained validations.
  • ROUTES:
                 Prefix Verb   URI Pattern                                                  Controller#Action
                   root GET    /                                                            home#index
         market_vendors POST   /markets/:market_id/vendors(.:format)                        vendors#create
      new_market_vendor GET    /markets/:market_id/vendors/new(.:format)                    vendors#new
                markets GET    /markets(.:format)                                           markets#index
                        POST   /markets(.:format)                                           markets#create
             new_market GET    /markets/new(.:format)                                       markets#new
            edit_market GET    /markets/:id/edit(.:format)                                  markets#edit
                 market GET    /markets/:id(.:format)                                       markets#show
                        PATCH  /markets/:id(.:format)                                       markets#update
                        PUT    /markets/:id(.:format)                                       markets#update
           vendor_sales GET    /vendors/:vendor_id/sales(.:format)                          sales#index
   vendor_product_sales POST   /vendors/:vendor_id/products/:product_id/sales(.:format)     sales#create
new_vendor_product_sale GET    /vendors/:vendor_id/products/:product_id/sales/new(.:format) sales#new
        vendor_products POST   /vendors/:vendor_id/products(.:format)                       products#create
     new_vendor_product GET    /vendors/:vendor_id/products/new(.:format)                   products#new
    edit_vendor_product GET    /vendors/:vendor_id/products/:id/edit(.:format)              products#edit
         vendor_product PATCH  /vendors/:vendor_id/products/:id(.:format)                   products#update
                        PUT    /vendors/:vendor_id/products/:id(.:format)                   products#update
                        DELETE /vendors/:vendor_id/products/:id(.:format)                   products#destroy
                vendors GET    /vendors(.:format)                                           vendors#index
            edit_vendor GET    /vendors/:id/edit(.:format)                                  vendors#edit
                 vendor GET    /vendors/:id(.:format)                                       vendors#show
                        PATCH  /vendors/:id(.:format)                                       vendors#update
                        PUT    /vendors/:id(.:format)                                       vendors#update
                        DELETE /vendors/:id(.:format)                                       vendors#destroy

johnanmorris and others added 30 commits October 4, 2016 14:00
…xt; modified Markets_controller to redirect edit back to show view
mimyal and others added 25 commits October 6, 2016 21:52
… Added new nested route for sale/product/vendor nesting
@mimyal mimyal added the Brackets label Oct 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants