restaurant's People
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
andhas_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
andsort_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 useorder
method of ActiveRecord, it brings more performance and scability, check it out - I think you should spend sometime update your README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.