HTML5 and CSS3 have added lots of shiny features to the web developers toolset, but you need a quick way to only serve new features to borwsers that support them.
Use this in your rails app to detect the capabilities of the current browser and serve appropriate markup.
gem install useragent_supports
if UseragentSupports.new.feature(:fileapi, request.user_agent) render :template => "html5_uploader.html.erb" else render :template => "flash_uploader.html.erb" end
James Healy email@example.com
- Make the API suck less
- Make the versioning date based to allow for updates to the data with no code changes
- rails integration?
- document the available features