Coder Social home page Coder Social logo

restaurant's People

Contributors

vnma avatar

Watchers

 avatar  avatar

restaurant's Issues

Assignment 1 Review

You have done most part of the homework, really appreciate your work

Goals of this homework:

  • Learn how to define root path and custom paths. Use _path methods in controller and view files
  • Use ActiveRecord querying with .where
  • Create multiple ActiveRecord models with different types of columns
  • Sort items by using ActiveRecord's .order method (reference here)
  • Use ActionController's Flash to display success or failure notices (reference here)

Great stuffs:

  • You look confident using where, really awesome stuffs
  • You also look confident using belongs_to and has_many
  • Very good use of validation, nice job man. You also know how to use numericality and :length => { :minimum => 10, :maximum => 15 }
  • Nice email validation too validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
  • Good use of flash
  • Using before_save is great
  • You have created number of functions in model, this keeps the code small, good job man <3
  • Keep expore ruby functional stuffs man like this one collect and sort_by, very nice to see them
  • Nice features in cart_show page
  • You also know how to do ajax and respond_to :js

Suggestions:

  • I suggest you spend time on optional issues, they will really bring you to the next levels
  • Instead of sort_by you can use order method of ActiveRecord, it brings more performance and scability, check it out
  • I think you should spend sometime update your README

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.