mendicant-original / puzzlenode

Quiz application inspired by Project Euler and the Internet Problem Solving Contest (IPSC)
puzzlenode.com
81 stars 43 forks source link

Puzzle show routes should use a slug of the puzzle name rather than database id #58

Closed jordanbyron closed 12 years ago

jordanbyron commented 13 years ago

We can use slugger from university-web to generate the slug. We will also need to update all puzzle_path(puzzle.id) routes to use puzzle_path(puzzle.slug) and add Puzzle#slug which would be a required field.

University-web also has a simple javascript helper which populates a specified field with slug data which we can use.