lib/bad_browser.rb
# Get human friendly name for browser
Get human friendly name for browser
Get human friendly name for browser
def browser_name
      return 'Unknown' if params[:for] == 'u' || user_agent && user_agent.failed? 
      case user_agent ? browser : params[:for].to_sym
      when :msie then 'Microsoft Internet Explorer'
      when :firefox then 'Mozilla Firefox'
      when :chrome then 'Google Chrome'
      when :safari then 'Apple Safari'
      when :opera then 'Opera'
      end
    end
def browser_name return 'Unknown' if params [ :for ] == 'u' || user_agent && user_agent . failed? case user_agent ? browser : params [ :for ] . to_sym when :msie then 'Microsoft Internet Explorer' when :firefox then 'Mozilla Firefox' when :chrome then 'Google Chrome' when :safari then 'Apple Safari' when :opera then 'Opera' end end
Get human friendly name for browser
Get human friendly name for browser
#&& !params[:for]