Skip to content

Instantly share code, notes, and snippets.

@qoobaa
Created April 10, 2014 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save qoobaa/10368474 to your computer and use it in GitHub Desktop.
Save qoobaa/10368474 to your computer and use it in GitHub Desktop.
this.resource("restaurants", function () {
this.resource("restaurant", { path: "/:restaurant_id" }, function () {
this.route("show", { path: "/" });
this.resource("bookings", function () {
this.route("new");
this.resource("booking", { path: "/:booking_id" }, function () {
this.route("show");
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment