datagovuk / dgu2

Experimental publishing prototype
MIT License
0 stars 1 forks source link

Fix parameter that will be passed as part of URL #33

Closed rossjones closed 8 years ago

rossjones commented 8 years ago

By default, if you pass @publisher it will use the PK (the id field), but we switched to using the name field so we can access them as slugs. Whenever you use publisher_path you should pass @publisher.name instead of @publisher.

Fixes #32