Skip to content

Instantly share code, notes, and snippets.

@darthdeus
Created January 15, 2013 19:40
Show Gist options
  • Select an option

  • Save darthdeus/4541354 to your computer and use it in GitHub Desktop.

Select an option

Save darthdeus/4541354 to your computer and use it in GitHub Desktop.

Revisions

  1. darthdeus created this gist Jan 15, 2013.
    10 changes: 10 additions & 0 deletions routes.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    this.resource("posts", { path: "/posts" }, function() {
    this.resource("show", { path: "/:post_id" });
    });

    this.resource("posts", { path: "/posts" }, function() {
    this.resource("post", { path: "/:post_id" });
    });

    this.resource("posts", { path: "/posts" });
    this.resource("post", { path: "/posts/:post_id" });