I have a slugified the title of blog posts in the yabe sample app to form a url. To reverse the effect inside my controller, I replaced all - with space and it worked for now.
But i envisage when the title has other characters like ' which is also replaced with - by slugify, how can I get the correct title back inside the controller?
Thanks.
Ebenezer Olanrewaju
Ebenezer Olanrewaju
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
I think i've gotten another idea. I'll slugify each title and save it separately. I'll use this to lookup the post.
I recommend you to include the id in the URL, like that:
https://play.lighthouseapp.com/projects/57987/tickets/1215-add-sorting-to-getchoices
The slug is only here for a better looking URL, but routing is done
purely from the id.
--
Erwan Loisant