Give your Rails 2.0 application an iPhone UI

Posted by David December 04, 2007 @ 03:34 PM

Multi-view development is a big deal in Rails 2.0. We’ve made it much simpler to allow the same action to serve many different formats. From HTML to XML to JSON to RSS and ATOM to CSV to whatever.

But did you know that you can use the same multi-view system to trout out different flavors of the same basic types? Say, give iPhone users a custom HTML interface while serving regular HTML users with the standard feast.

Slash Dot Dash teaches you how to do exactly that: Give a Rails 2.0 application an iPhone UI.

Posted in Documentation | 5 comments

Comments

  1. peanut on 05 Dec 11:08:

    Great article. But not useful for Russian developers, and other country-without-iphone developers. I think, multiviews in Rails is a great thing, because today a lot of gadgets can view web-pages and use web-applications.

    Great job! Thanks!

  2. D.L. on 05 Dec 12:20:

    Now you can have your project on Ruby On Rails on iPhone on your pocket!

    Jokes aside, I’m pleasantly surprised to see how simple it is to set up things for the iPhone. I just hoped they would provide a more elegant solution than setting respond_to on every single action. But nice article, anyway.

  3. John on 05 Dec 14:31:

    Nice information! THX

  4. dai on 10 Dec 17:10:

    This is very interesting article. Thanks!

  5. Plissee on 13 Dec 10:16:

    Hello, nice programm and nice blog style. Thank you for this good articel. But i think, i don“t need the same projects on two different places. But that is the think of everyone self.