REST Urls in Rails
A helpful overview of Rails' REST Url convention:
/airports/ + POST = create
/airports/1 + GET = show
/airports/1 + PUT = update
/airports/1 + DELETE = destroy
/airports/ + GET = index
/airports/new + GET = new
/airports/1;edit + GET = edit
From http://softiesonrails.com/2007/4/18/rest-101-part-4-routing
/airports/ + POST = create
/airports/1 + GET = show
/airports/1 + PUT = update
/airports/1 + DELETE = destroy
/airports/ + GET = index
/airports/new + GET = new
/airports/1;edit + GET = edit
From http://softiesonrails.com/2007/4/18/rest-101-part-4-routing

0 Comments:
Post a Comment
<< Home