4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
1 results tagged accept x
  • Mashing It Up: Parsing Accept-Language in Rails

    Really cool :)

    Good to know about accept language format :
    Example : fr,en-US;q=0.7,en;q=0.3
    q value is between 0 and 1 (default value is 1)
    the bigger it is the the higher is the priority to select a language

    Here client says :
    I prefer fr (q=1)
    Then en-US (q=0.7)
    Then..

    October 9, 2015 at 5:21:20 PM GMT+2 - permalink - archive.org - http://mashing-it-up.blogspot.com/2008/10/parsing-accept-language-in-rails.html
    accept header language parse ruby
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation