Leading slash in generated routes causes issues with rails 3.2.3 #106

Open
justin808 opened this Issue Apr 13, 2012 · 4 comments

Comments

Projects
None yet
3 participants

I had to change the generated model_routes.js to this (no leading slash). Otherwise, the router was not picking up the url requests like: http://localhost:3000/posts/#/new

  routes:
    "new"      : "newPost"
    "index"    : "index"
    ":id/edit" : "edit"
    ":id"      : "show"
    ".*"       : "index"
Collaborator

ryanfitz commented Apr 13, 2012

what version of rails-backbone are you using? The latest version should be generating routes without the leading slashes.

Contributor

zhubert commented Apr 13, 2012

same issue I reported, pull request has been submitted

Collaborator

ryanfitz commented Apr 13, 2012

I see, I had it fixed in the route generator, but not in the scaffold generator.

@zhubert I pulled in your fix, I'll get a release out shortly. Thanks

Any explanation for the "why" behind the change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment