Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for removing from model to do multiple columns in terminal use AND
- Order of key when creating a model wont matter
- For example
- :status, default: "carted" , (it means that is will be added to cart after product is carted)
- In order to remove a change to existing model
- short hasn
- Order.destroy_all will do all methods
- if no order id after it requested it will rollback, to navigate through this
- ex. belongs_to order: , optional: true
- When creating a controller, alway add change to routes, before addign aything to controller
- if defuault example carrted add status and default on carted, that will no be necessary in controller. other wise it wiill be
- where: is a collention mehtod
- Big O Continued
- Let's create
- nested loop loop within a loop
- n square number mutiplied nsteps times nsteps
- o(N)
- o(log N)
- o(N2)
- Stay away form N2
Add Comment
Please, Sign In to add comment