Rails - Cant get http_accept_language gem to work in my rails project
Posted
by adam
on Stack Overflow
See other posts from Stack Overflow
or by adam
Published on 2010-05-12T14:44:54Z
Indexed on
2010/05/15
3:54 UTC
Read the original article
Hit count: 267
ruby-on-rails
|internationalization
I'm internationalizing my app and I've installed the http_accept_language gem on my system I've placed config.gem 'http_accept_language' into my environment.rb file but every time I try to run this code in my controller
request.user_preferred_languages
it complains of no method error.
There are no other instructions on the readme on github... am I missing something?
EDIT - Problem solved.
after a good nights sleep I came back and realised I hadnt restarted the server. I hate it when that happens.
© Stack Overflow or respective owner