how to rescue if user access the wrong url and then app redirect automatic to valid url using before filter, example i have valid url like this :
http:://localhost:3000/stores/
if i access with wrong url in browser, example like this :
http://localhost:3000/test/
i want my rails app automatic redirect to valid url => http:://localhost:3000/stores/
, if i'm try to access wrong url like above. How do that?
thanks before