iPhone on Rails
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
MIT-LICENSE
README.md
Rakefile
init.rb

README.md

iphoneification

A Rails plugin which lets your app serve custom content to iPhone and iPod Touch users.

Usage

script/plugin install git://github.com/jameswilding/iphoneification.git

class ApplicationController
  responds_to_iphone
end

Name your views and layouts {name}.iphone.erb. Skip iphonification with skip_iphone_response. The responds_to_iphone and skip_iphone_response methods takes the same options as before_filter and skip_before_filter, respectively: see api.rubyonrails.org for more details.

More

Original blog post at http://jameswilding.net/2009/08/10/iphone-on-rails/.

Credit

Based on an article from slashdotdash.net.

Copyright

Copyright (c) 2009 James Wilding, released under the MIT license.