[Rails] search engine friendly URL params?

CodeNinja
Sat, 31 Dec 2005 04:51:02 -0000

I have a site which is a listing of realestate offerings, written
currently in PHP.

With complicated .htaccess rules, going to the url
site.com/listings/226/aid/29/ref/contact leads to the page
listings/prop_view.php?id=226&aid=29&ref=contact... the beauty of this
is that the link is SEO friendly and thus gains high rankings in the
engines because they will reach it.

question is, how would I do this in rails so that I get the same url and
not
site.com/listings/view/226?aid=29&ref=contact

I could write the link dynamicly (without helpers) in the view, but then
would rails seperate these into :params? or would I have to do somthing
else with the data to map it or connect it?

Thanks for helping a noob.

--
Posted via http://www.ruby-forum.com/.