Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.0 Mobile Site

I was wondering how I go about creating a mobile version of a Rails 3.0 application.

I saw this post: Mobile version of views for Ruby on Rails

But I am confused on the respond_to method. How does the method know which format to render?

Would I create a method in my application controller to render a mobile layout and then for each view use the respond_to method?

Thank you,

Brian

like image 313
Brian Avatar asked Feb 22 '23 18:02

Brian


1 Answers

Ryan Bates has done a great tutorial

http://railscasts.com/episodes/199-mobile-devices

like image 130
damienbrz Avatar answered Feb 26 '23 17:02

damienbrz