Different renderings within the same format

I would like to write the same application for Facebook web app and
Standard web users,
but the Facebook layout is restricted, so I would have 2 html format
layouts…

what is the best way to respond to html request from FB users and
‘standard’ users on the web… ?
what I should test in the request to select the correct layout ?

thanks for your feedback

On Feb 21, 3:00pm, Erwin [email protected] wrote:

I would like to write the same application for Facebook web app and
Standard web users,
but the Facebook layout is restricted, so I would have 2 html format
layouts…

what is the best way to respond to html request from FB users and
‘standard’ users on the web… ?

you can create pseudo mime types. I’ve most often seen this in the
context of doing mobile web versions, but I imagine the same technique
should work (one writeup of this is at
http://nathanhoad.net/intro-to-iphone-optimising-your-rails-site)

what I should test in the request to select the correct layout ?

don’t know.

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs