I would like to allow only mobile devices on my web site, such as blackberry, iPod-touch, iPhone, Android, etc.
How do I ensure that only those devices get onto my website, and that other users are redirected to a custom “no-access” page?
Is there an easy way using Ruby on Rails to make this happen?
You want to pull out a request header called “User-Agent” and see if it matches any of the devices you’ve stated. If not then redirect to the appropriate page. Yes, this can be done with Ruby on Rails.