Rails 3 global and optional route for format to assist page caching?

You can hook into the route recognition or generation with the routing-filter plugin. It is very flexible, take a look For the generation, your use case would be to check if there's a params:format and in that case add a new segment at the end of the url If you also need recognition, this time it's the opposite, check if there's a trailing segment with either xml or json and in that case add params:format to match it.

You can hook into the route recognition or generation with the routing-filter plugin. It is very flexible, take a look. For the generation, your use case would be to check if there's a params:format and in that case add a new segment at the end of the url.

If you also need recognition, this time it's the opposite, check if there's a trailing segment with either '/xml' or '/json'and in that case add params:formatto match it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions