Get SEO friendly URLS with Rails without mehtod_missing?
Posted
by tesmar
on Stack Overflow
See other posts from Stack Overflow
or by tesmar
Published on 2010-06-15T19:09:40Z
Indexed on
2010/06/15
19:12 UTC
Read the original article
Hit count: 227
Hi all,
Currently we are using method_missing to catch for calls to SEO friendly actions in our controllers rather than creating actions for every conceivable value for a variable. What we want are URLS like this:
/students/BobSmith
and NOT /students/show/342
IS there a cleaner solution than method_missing?
Thank you!
© Stack Overflow or respective owner