Update ruby version in Gemfile
Factor out a common method for revealing the preferences link

See this commit for more info:
  170e13d91343886a1eb129fba547d2954c5e3a2a