authenticate basic with Ruby on Rails 3.2