Skip to content

Instantly share code, notes, and snippets.

@drogus
Forked from qoobaa/gist:10368474
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drogus/10368834 to your computer and use it in GitHub Desktop.
Save drogus/10368834 to your computer and use it in GitHub Desktop.
this.resource("restaurants")
this.resource("restaurant", { path: "/restaurants/:restaurant_id" }, function () {
this.resource("bookings", function () {
this.route("new");
});
this.resource("booking", { path: "/bookings/:booking_id" });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment