I am just beginning with RoR and I need to add into existing RoR
application version for mobile device-concretely iPhone. I need to
change layer for it and a lot of view because I need different display
on the iPhone. So I am thinking about three ways how to do it:
1. change a url address to domain/iphone/...
-here i suppose i need to change routes for each of my new sites,
probably new controllers etc. (i don't know exacly) - this way seems to
me like creating almost whole application again
2. add an attribute to the url like type=iphone and in controllers if is
this type iphone render view for iphone
3. use session with same result like in point 2
Or is here some better way how to do it???
Thank you very much for every help.