DEV Community

dmacinto
dmacinto

Posted on

AppDev Week 1

resources :movies gives you all 7 routes

a = [1,2,3]

h = { :first => 1, :second => 2}

a.at(2)

h.fetch(“first”)

https://exercism.org/ for more practice

post used to modify the database

post needs to come with a password to ensure that a 3rd party isn’t generating a DDoS type of thing

routes start with the plural name of the table name

use patch for updates, change http verb for different crud functions

delete, patch, post, get

use rails/info on the bin/server url to pull up a listing of all of the routes

Top comments (0)